Comments (4)
What sort of error or log messages do you get when it fails?
from hadoop-pcap.
Sorry, I thought I had attached the error messages:
Using Python version 2.7.12 (default, Nov 19 2016 06:48:10)
SparkSession available as 'spark'.
import net.ripe.hadoop.pcap.io.PcapInputFormat
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named net.ripe.hadoop.pcap.io.PcapInputFormat
import net.ripe.hadoop.pcap.io.CombinePcapInputFormat
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named net.ripe.hadoop.pcap.io.CombinePcapInputFormat
from net.ripe.hadoop.pcap.io import CombinePcapInputFormat
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named net.ripe.hadoop.pcap.io
I have started the pyspark with this options:
$SPARK_HOME/bin/pyspark --master spark://base:7077 --executor-memory 1000m --executor-cores 4 --conf "spark.locality.wait.node=0" --conf "spark.executor.extraJavaOptions=-XX:MaxDirectMemorySize=1000m" --conf "spark.default.parallelism=3" --driver-memory=600m --jars $SPARK_HOME/mysql-connector-java-5.1.41-bin.jar,$SPARK_HOME/hadoop-pcap-serde-1.1-jar-with-dependencies.jar,$SPARK_HOME/hadoop-pcap-lib-1.1.jar --verbose --num-executors 10 --driver-class-path=/usr/local/spark/*
using the same cmd line in spark-shell works good.
from hadoop-pcap.
That won't work. hadoop-pcap is a Java library. So you will have to figure out how to use it with something like Py4J or similar. Haven't done that myself yet so cannot help on how.
from hadoop-pcap.
I have tried using py4j. It imports the library.
The real issue is when I pass the class to the newAPIhadoopFile. It throws a classnotFound.
from hadoop-pcap.
Related Issues (20)
- New fields addition HOT 2
- Re-compile to include HiveDecimal HOT 2
- headerKeys in HttpPcapReader not initialize properly HOT 1
- java.lang.RuntimeException: java.lang.RuntimeException: class net.ripe.hadoop.pcap.DnsPcapReader not net.ripe.hadoop.pcap.PcapReader HOT 3
- parsed pcaket with NULL source and destination HOT 3
- "Not a PCAP file" error HOT 2
- Fragment ordering
- Ignore malformed packets HOT 1
- Re-assembly for out-of-order packets HOT 1
- Not able to extract packet payload data HOT 9
- new MapReduce API support would be nice HOT 4
- NullPointerException at "NewTrackingRecordReader.initialize(MapTask.java:548)"
- get URL in HTTP_HEADERS
- java.lang.ClassCastException: net.ripe.hadoop.pcap.io.PcapInputFormat cannot be cast to org.apache.hadoop.mapred.InputFormat HOT 2
- Porting code to spark 2.0 HOT 4
- Releasing 1.2 in Maven repository?
- The method close() of type PcapRecordReader must override a superclass method
- How To Run Hadoop PCAP File In Eclipse
- how to read incoming network traffic information through hadoop pcap lib and hadoop pacp serde libraries HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hadoop-pcap.