apache pig - cant run pig with single node hadoop server -
i have setup vm ubuntu. runs hadoop single node. later installed apache pig on it. apache pig runs great local mode, prom error 2999: unexpected internal error. failed create datastorage
i missing obvious. can me running please?
more details: 1. assume hadoop running fine because, run mapreduce jobs in python. 2. pig -x local runs expect. 3. when type pig
gives me following error
error before pig launched ---------------------------- error 2999: unexpected internal error. failed create datastorage java.lang.runtimeexception: failed create datastorage @ org.apache.pig.backend.hadoop.datastorage.hdatastorage.init(hdatastorage.java:75) @ org.apache.pig.backend.hadoop.datastorage.hdatastorage.(hdatastorage.java:58) @ org.apache.pig.backend.hadoop.executionengine.hexecutionengine.init(hexecutionengine.java:214) @ org.apache.pig.backend.hadoop.executionengine.hexecutionengine.init(hexecutionengine.java:134) @ org.apache.pig.impl.pigcontext.connect(pigcontext.java:183) @ org.apache.pig.pigserver.(pigserver.java:226) @ org.apache.pig.pigserver.(pigserver.java:215) @ org.apache.pig.tools.grunt.grunt.(grunt.java:55) @ org.apache.pig.main.run(main.java:452) @ org.apache.pig.main.main(main.java:107) caused by: java.io.ioexception: call localhost/127.0.0.1:54310 failed on local exception: java.io.eofexception @ org.apache.hadoop.ipc.client.wrapexception(client.java:775) @ org.apache.hadoop.ipc.client.call(client.java:743) @ org.apache.hadoop.ipc.rpc$invoker.invoke(rpc.java:220) @ $proxy0.getprotocolversion(unknown source) @ org.apache.hadoop.ipc.rpc.getproxy(rpc.java:359) @ org.apache.hadoop.hdfs.dfsclient.createrpcnamenode(dfsclient.java:106) @ org.apache.hadoop.hdfs.dfsclient.(dfsclient.java:207) @ org.apache.hadoop.hdfs.dfsclient.(dfsclient.java:170) @ org.apache.hadoop.hdfs.distributedfilesystem.initialize(distributedfilesystem.java:82) @ org.apache.hadoop.fs.filesystem.createfilesystem(filesystem.java:1378) @ org.apache.hadoop.fs.filesystem.access$200(filesystem.java:66) @ org.apache.hadoop.fs.filesystem$cache.get(filesystem.java:1390) @ org.apache.hadoop.fs.filesystem.get(filesystem.java:196) @ org.apache.hadoop.fs.filesystem.get(filesystem.java:95) @ org.apache.pig.backend.hadoop.datastorage.hdatastorage.init(hdatastorage.java:72) ... 9 more caused by: java.io.eofexception @ java.io.datainputstream.readint(datainputstream.java:375) @ org.apache.hadoop.ipc.client$connection.receiveresponse(client.java:501) @ org.apache.hadoop.ipc.client$connection.run(client.java:446) ================================================================================
link helped me understand possible cause of failure.
here fixed problem.
1. recompile pig without hadoop.
2. update pig_classpath have jars $hadoop_home/lib
3. run pig.
thanks.
Comments
Post a Comment