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

前端 未结 3 1325
眼角桃花
眼角桃花 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:33

    I had the same issue with JDK 9. The fix for me was to add this line in hadoop-env.sh

    export HADOOP_OPTS="--add-modules java.activation"

    Thats because java.activation package is deprecated in Java 9.

提交回复
热议问题