how to setup nutch 2.x and hbase in distributed cluster mode

569 views
Skip to first unread message

Zahid Adeel

unread,
Mar 26, 2014, 4:28:23 AM3/26/14
to camu...@googlegroups.com
hi everyone,
i want to run nutch2.x in distributed mode with hbase as backend storage. Official wiki is old and it can guide about nutch1.x only.
i tried to run nutch2.x in single node mode with hadoop according to this tutorial but it returned me following error. I think nutch 2.x can be run in distributed mode only if we have hdfs as backend storage.
Any solution please ...!! how can i run hbase+nutch2.x in distributed mode..!!

command used to run nutch2.x with hadoop:
hadoop jar apache-nutch-2.2.1.job org.apache.nutch.crawl.Crawler urls/urdu.txt



14/03/26 13:01:38 INFO zookeeper.ClientCnxn: Opening socket connection to server localhost/127.0.0.1:2181
14/03/26 13:01:38 INFO zookeeper.ClientCnxn: Socket connection established to localhost/127.0.0.1:2181, initiating session
14/03/26 13:01:38 INFO zookeeper.ClientCnxn: Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x144fd3cb2f3000f, negotiated timeout = 40000
14/03/26 13:01:39 INFO crawl.InjectorJob: InjectorJob: Using class org.apache.gora.hbase.store.HBaseStore as the Gora storage class.
14/03/26 13:01:42 INFO mapred.JobClient: Cleaning up the staging area hdfs://master:9010/home/exploiter/crawler/hadoop-1.2.1/temp/mapred/staging/hpcnl/.staging/job_201403261131_0002
14/03/26 13:01:42 ERROR security.UserGroupInformation: PriviledgedActionException as:hpcnl cause:org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does not exist: hdfs://master:9010/user/hpcnl/urls/urdu.txt
Exception in thread "main" org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does not exist: hdfs://master:9010/user/hpcnl/urls/urdu.txt
    at org.apache.hadoop.mapreduce.lib.input.FileInputFormat.listStatus(FileInputFormat.java:235)
    at org.apache.hadoop.mapreduce.lib.input.FileInputFormat.getSplits(FileInputFormat.java:252)
    at org.apache.hadoop.mapred.JobClient.writeNewSplits(JobClient.java:1054)
    at org.apache.hadoop.mapred.JobClient.writeSplits(JobClient.java:1071)
    at org.apache.hadoop.mapred.JobClient.access$700(JobClient.java:179)
    at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:983)
    at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:936)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:415)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1190)
    at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:936)
    at org.apache.hadoop.mapreduce.Job.submit(Job.java:550)
    at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:580)
    at org.apache.nutch.util.NutchJob.waitForCompletion(NutchJob.java:50)
    at org.apache.nutch.crawl.InjectorJob.run(InjectorJob.java:233)
    at org.apache.nutch.crawl.Crawler.runTool(Crawler.java:68)
    at org.apache.nutch.crawl.Crawler.run(Crawler.java:136)
    at org.apache.nutch.crawl.Crawler.run(Crawler.java:250)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
    at org.apache.nutch.crawl.Crawler.main(Crawler.java:257)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:160)

sreemant...@fourthlion.in

unread,
May 7, 2014, 7:35:05 AM5/7/14
to camu...@googlegroups.com
Error saying that urls/urdu.txt is not available in hdfs file system. Copy urls/urdu.txt file to HDFS
Reply all
Reply to author
Forward
0 new messages