unknown protocol: hdfs
16lz
2021-04-11
URL默认不支持hdfs
import org.apache.hadoop.fs.FsUrlStreamHandlerFactory;
URL.setURLStreamHandlerFactory(new FsUrlStreamHandlerFactory()); 然后再使用
URL url2=new URL("hdfs://192.168.66.8:9000"); 就可以了
更多相关文章
- The hierarchy of the type is inconsistent
- 【MOS】Limitations of the Oracle Cost Based Optimizer (文档
- 【MOS】Redundant Interconnect ora.cluster_interconnect.haip
- funsionchart水印问题
- 【MOS】Index Rebuild Is Hanging Or Taking Too Long (文档 ID
- MyBatis传入参数为list 数组 map
- querySelector
- Java正则表达式过滤脚本威胁--封装类
- Linux下安装linux tar.gz包