hadoop - hdfs - ls: Failed on local exception: com.google.protobuf.InvalidProtocolBufferException: -


i trying use below list dirs in hdfs...

ubuntu@ubuntu:~$ hadoop fs -ls hdfs://127.0.0.1:50075/  ls: failed on local exception: com.google.protobuf.invalidprotocolbufferexception:  protocol    message end-group tag did not match expected tag.;  host details : local host is: "ubuntu/127.0.0.1"; destination host is: "ubuntu":50075;  

here /etc/hosts file

127.0.0.1       ubuntu localhost #127.0.1.1      ubuntu  # following lines desirable ipv6 capable hosts ::1     ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters 

hi use hdfs:// list dirs?

i using couldera 4.3 on ubuntu 12.04

hdfs not running @ 50075. check hdfs port use following command in linux

hdfs getconf -confkey fs.default.name 

you output like

hdfs://hmaster:54310 

and correct url accordingly


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

How to call a javascript function after the page loads with a chrome extension? -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -