Utility to mock hadoop command-line interface
Project description
Utility to mock hadoop command-line interface at your home.
Overview
$ export HADOOP_SSH_HOST=rnd07.local $ export HADOOP_SSH_OPTS=User=afyodorov $ export HADOOP_SSH_SUDO=hdfs $ hadoop_ssh fs -ls /flume/logs/bs/2014/09/03 Found 4 items drwxr-xr-x - hdfs supergroup 0 2014-10-01 16:28 /flume/logs/bs/2014/09/03/20 drwxr-xr-x - hdfs supergroup 0 2014-10-01 16:29 /flume/logs/bs/2014/09/03/21 drwxr-xr-x - hdfs supergroup 0 2014-10-01 16:31 /flume/logs/bs/2014/09/03/22 drwxr-xr-x - hdfs supergroup 0 2014-10-01 16:33 /flume/logs/bs/2014/09/03/23 $ export HADOOP_MOCK_HDFS_PATH=~/.hdfs_mock $ export HADOOP_MOCK_CLI=hadoop_ssh $ hadoop_mock mock /flume/logs/bs/2014/09/03 $ hadoop_mock -fs ls /flume/logs/bs/2014/09/03 Found 4 items drwxr-xr-x - user group 204 2015-04-20 02:40 /flume/logs/bs/2014/09/03/20 drwxr-xr-x - user group 204 2015-04-20 02:40 /flume/logs/bs/2014/09/03/21 drwxr-xr-x - user group 204 2015-04-20 02:40 /flume/logs/bs/2014/09/03/22 drwxr-xr-x - user group 204 2015-04-20 02:40 /flume/logs/bs/2014/09/03/23 $ seq 10 | hadoop_mock fs -put - /test.txt $ hadoop_mock jar hadoop-streaming -reducer 'wc -l' -input /test.txt -output /output $ cat ~/.hdfs_mock/output/* 10
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hadoop_mock-0.1.tar.gz
(4.7 kB
view details)
Built Distribution
hadoop_mock-0.1-py2.7.egg
(12.2 kB
view details)
File details
Details for the file hadoop_mock-0.1.tar.gz
.
File metadata
- Download URL: hadoop_mock-0.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c894ea79ad1d4bf98a6349e697cdcd223a73d2e5d37d54c4fe5627788e8682f8 |
|
MD5 | 47c1dec2f421941febe6bd2349cbcd98 |
|
BLAKE2b-256 | c87b12596045d39892a1dbf470fd2e560ba967dac07e9433fba9526a44af5a87 |
File details
Details for the file hadoop_mock-0.1-py2.7.egg
.
File metadata
- Download URL: hadoop_mock-0.1-py2.7.egg
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b410548d0374ad3b3588260961db4c508c4d0d5e1c144f389d4eac2f215ae9aa |
|
MD5 | 7d002b545f52e99115cb301beca3b053 |
|
BLAKE2b-256 | 95b33b5abd864e34de7aed6f71098543a6635584831c3646a723e2151eeb5fbc |