Reputation: 688
i made one jar
which analyzes system logs .. for running this jar on HADOOP server i can do it using command line like "bin/hadoop jar log.jar"
but my problem is i want to make this jar executable in background as a service on Ubuntu master machine.
can any one help me how can i make HADOOP jar as a service so it can run like a background service on Ubuntu Machine .. runs after every 1hrs.
Upvotes: 1
Views: 277
Reputation: 30089
You have a few options, here's two:
0 * * * * /usr/lib/hadoop/bin/hadoop jar /path/to/jar/log.jar
Upvotes: 1