http-Anfrage an webhdfs, aber leere Antwort vom Server

Ich bin neu in Hadoop. Ich habe das webhdfs aktiviert und den Befehl curl verwendet, um ein Basisverzeichnis zu erhalten.

curl -i http://172.16.18.50:9000/webhdfs/v1/?op=GETHOMEDIRECTORY

Aber holen Sie sich die Information: Leere Antwort vom Server. Hier sind die conf-Dateien:

core-site.xml ----

<configuration>
   <property>
      <name>fs.default.name</name>
      <value>hdfs://webHDFS0:9000</value>
   </property>

   <property>
      <name>hadoop.tmp.dir</name>
      <value>/home/eins/hadoop-1.0.2/tmp</value>
   </property>
</configuration>

hdfs-site.xml ----

<configuration>
   <property>
      <name>dfs.replication</name>
      <value>2</value>
   </property>
    <property>
        <name>dfs.webhdfs.enabled</name>
        <value>enabled</value>
    </property>
</configuration>

Kann mir jemand ein paar Vorschläge geben?

Antworten auf die Frage(1)

Ihre Antwort auf die Frage