I have installed hadoop on ubuntu which running on virtualbox. When I first installed hadoop I can start hdfs and create directories with no problem.
But after I restart the virtual machine I got "Connection refused" error when try to run ls command on the hdfs. Then I added "Port 9000" in sshd_config base on Hadoop cluster setup - java.net.ConnectException: Connection refused now I am getting "ls: Failed on local exception: com.google.protobuf.InvalidProtocolBufferException: Protocol message tag had invalid wire type.; Host Details : local host is: "hadoop/127.0.1.1"; destination host is: "localhost":9000;"
--------------etc/hadoop/core-site.xml -------------
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://localhost:9000</value>
</property>
</configuration>
--------------etc/hadoop/hdfs-site.xml-----------------
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
</configuration>