Error “Failed to retrieve data from /webhdfs/v1/?op=LISTSTATUS: Server Error” when using hadoop

前端 未结 3 1327
眼角桃花
眼角桃花 2021-01-14 18:18

I opened up localhost:9870 and try to upload a txt file to the hdfs.

I see the error message below

Failed to retrieve data from /webhdfs/v1/?op=LISTS         


        
3条回答
  •  滥情空心
    2021-01-14 18:38

    Just solved such a problem, I have multiple java versions and hadoop3.1.0.

    you need to specify the java home variable in etc/hadoop/hadoop-env.sh, and the java version should be 1.8.

提交回复
热议问题