Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
H
hadoop
  • Overview
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Jobs
  • Issue Boards
  • jfbigdata
  • hadoop
  • Wiki
  • Python hdfs

Python hdfs

Last edited by zhengtianbao May 29, 2018
Page history
>>> from hdfs import InsecureClient
>>> client = InsecureClient('http://192.168.1.212:50070;http://192.168.1.222:50070', user='hadoop')
>>> print client.list("/")
[u'input', u'output', u'output2']
>>> client.upload("/input", "/root/anaconda-ks.cfg")
'/input/anaconda-ks.cfg'
>>> print client.list("/input")
[u'anaconda-ks.cfg', u'test.txt', u'test2.txt']
>>> exit();

hdfs

Clone repository
  • Hdfs
  • Home
  • Python hdfs
  • 公司测试ha环境
  • 安装部署
More Pages
×

New Wiki Page

Tip: You can specify the full path for the new file. We will automatically create any missing directories.