FAQ
Hi

Followed the link http://wiki.apache.org/pig/PigTutorial to setup PIG with
an existing HADOOP SINGLE NODE cluster.
Am trying to execute the example mentioned in the link under section "Pig
Scripts: Hadoop Cluster"

steps followed:
---------------------
1) setup hadoop on single node. The storage and retrieving data on dfs was
successful
2) on the same node, compiled the pig code and tried the following command
java -cp $PIGDIR/pig.jar:$HADOOPSITEPATH org.apache.pig.Main
script1-hadoop.pig


Am getting following stack trace


]$ java -cp $PIGDIR/pig.jar:$HADOOPSITEPATH org.apache.pig.Main
script1-hadoop.pig

2008-08-11 12:09:23,829 [main] INFO
org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting
to hadoop file system at: hdfs://localhost.loca
ldomain:54310
java.lang.RuntimeException: Failed to create DataStorage
at
org.apache.pig.backend.hadoop.datastorage.HDataStorage.init(HDataStorage.java:56)
at
org.apache.pig.backend.hadoop.datastorage.HDataStorage.(HExecutionEngine.java:160)
at
org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.init(HExecutionEngine.java:108)
at org.apache.pig.impl.PigContext.connect(PigContext.java:177)
at org.apache.pig.PigServer.(Grunt.java:43)
at org.apache.pig.Main.main(Main.java:293)
Caused by: java.net.SocketTimeoutException: timed out waiting for rpc
response
at org.apache.hadoop.ipc.Client.call(Client.java:559)
at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:212)
at org.apache.hadoop.dfs.$Proxy0.getProtocolVersion(Unknown Source)
at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:313)
at
org.apache.hadoop.dfs.DFSClient.createRPCNamenode(DFSClient.java:102)
at org.apache.hadoop.dfs.DFSClient.(DistributedFileSystem.java:68)
at
org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1280)
at org.apache.hadoop.fs.FileSystem.access$300(FileSystem.java:56)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1291)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:203)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:108)
at
org.apache.pig.backend.hadoop.datastorage.HDataStorage.init(HDataStorage.java:53)
... 7 more


Could you please help me to resolve above issue. My hadoop setup is working
fine. The hadoop-site.xml am using is as follows.
namenode url is working fine.. (http://localhost:50070/)
---------------------------------------------------------------
<configuration>
<property>
<name>hadoop.tmp.dir</name>
<value>/tmp/hadoop-suravako</value>
<description>A base for other temporary directories.</description>
</property>

<property>
<name>fs.default.name</name>
<value>hdfs://localhost.localdomain:54310</value>
<description></description>
</property>

<property>
<name>mapred.job.tracker</name>
<value>localhost:54311</value>
<description>
</description>
</property>

<property>
<name>dfs.replication</name>
<value>1</value>
<description>
</description>
</property>

</configuration>


Please let me know if am missing something..

Thankyou
Srilatha

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-user @
categorieshadoop
postedAug 11, '08 at 7:26p
activeAug 11, '08 at 7:26p
posts1
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Us latha: 1 post

People

Translate

site design / logo © 2022 Grokbase