简体   繁体   中英

How to setup webhdfs hadoop

I am trying to configure Hadoop with WebHDFS enabled, and then I also want to enable SSL on it. My hdfs-site.xml looks like this:

<configuration>
    <property>
        <name>dfs.name.dir</name>
        <value>/hadoopusermnt/dfsdata/namenode</value>
    </property>
    <property>
        <name>dfs.data.dir</name>
        <value>/hadoopusermnt/dfsdata/datanode</value>
    </property>
    <property>
        <name>dfs.replication</name>
        <value>1</value>
    </property>
    <property>
        <name>dfs.webhdfs.enabled</name>
        <value>true</value>
    </property>
</configuration>

However I cannot make curl calls:

curl -ki "http://localhost:50070/webhdfs/v1/tmo?op=GETFILESTATUS"
curl: (7) Failed to connect to localhost port 50070 after 0 ms: Connection refused

What am I missing? I am using Hadoop 3.3.4.

Seems like the default port was changed to 9870 . It works with this port.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM