forked from jatrost/hadoop-binary-analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,22 @@ | ||
Building: | ||
|
||
mvn package assembly:assembly | ||
|
||
Running: | ||
|
||
JAR=target/hadoop-binary-analysis-1.0-SNAPSHOT-job.jar | ||
|
||
# a local directory with files in it (directories are ignored for now) | ||
LOCAL_FILES=src/main/java/io/covert/binary/analysis/ | ||
INPUT="dir-in-hdfs" | ||
OUTPUT="output-dir-in-hdfs" | ||
|
||
# covert a bunch of relatively small files into one sequence file (Text, BytesWritable) | ||
hadoop jar $JAR io.covert.binary.analysis.BuildSequenceFile $LOCAL_FILES $INPUT | ||
|
||
# Use the config properties in example.xml to basically run the wrapper.sh script on each file using Hadoop | ||
# as the platform for computation | ||
hadoop jar $JAR io.covert.binary.analysis.BinaryAnalysisJob -files wrapper.sh -conf example.xml $INPUT $OUTPUT | ||
|
||
This is very much a work in progress, and feedback and pull requests are welcome. | ||
|