Upload data to HDFS with Java API

前端 未结 3 1928
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-24 19:19

I\'ve searched for some time now and none of the solutions seem to work for me.

Pretty straightforward - I want to upload data from my local file system to HDFS using th

3条回答
  •  清歌不尽
    2021-01-24 19:50

    Kasa, you need to use the method

    public static FileSystem get(URI uri,Configuration conf)
    

    to get fs, the uri params is necessary if you use java -jar command.

提交回复
热议问题