Error while putting data to HDFS?? Rhput

45 views
Skip to first unread message

engg.sy...@gmail.com

unread,
Feb 25, 2013, 8:27:37 AM2/25/13
to rh...@googlegroups.com
hi i am trying to put data to hdfs from my local location i am tryting to run this command ,

>rhput(/root/TripAdvisor.tar.gz_FILES/Aspects/hotel_72572_parsed_parsed.txt,/tmp/dfs/data)
Error: unexpected '/' in "rhput(/"

i have installed all things successfully

whats wrong in it hopes for your suggestion

engg.sy...@gmail.com

unread,
Feb 25, 2013, 8:32:20 AM2/25/13
to rh...@googlegroups.com
after slightly changing above cammand getting this error ,

> rhput("/root/TripAdvisor.tar.gz_FILES/Aspects/hotel_72572_parsed_parsed.txt","/tmp/dfs/data")
java.io.FileNotFoundException: File /root/TripAdvisor.tar.gz_FILES/Aspects/hotel_72572_parsed_parsed.txt does not exist.
        at org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:397)
        at org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:251)
        at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:213)
        at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:176)
        at org.apache.hadoop.fs.FileSystem.copyFromLocalFile(FileSystem.java:1183)
        at org.godhuli.rhipe.FileUtils.copyFromLocalFile(FileUtils.java:103)
        at org.godhuli.rhipe.PersonalServer.rhput(PersonalServer.java:243)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.godhuli.rhipe.PersonalServer.startme(PersonalServer.java:720)
        at org.godhuli.rhipe.PersonalServer.run(PersonalServer.java:760)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
        at org.godhuli.rhipe.PersonalServer.main(PersonalServer.java:772)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:156)

Error in Rhipe:::send.cmd(rhoptions()$child$handle, list("rhput", path.expand(src),  :
  Error response from Rhipe Java server.


hopes for suggestion

Ashrith

unread,
Feb 25, 2013, 9:36:24 AM2/25/13
to rh...@googlegroups.com
Have you checked the case for the source file?

Bikash Agrawal

unread,
Apr 10, 2013, 4:49:30 AM4/10/13
to rh...@googlegroups.com
It looks like source file path is wrong, /root/TripAdvisor.tar.
gz_FILES/Aspects/hotel_72572_parsed_parsed.txt
Could you copy same file in home directory and try it.


Reply all
Reply to author
Forward
0 new messages