This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> curl 'http://172.20.11.177:50070/jmx?qry=Hadoop:service=NameNode,name=NameNodeStatus' | |
{ | |
"beans" : [ { | |
"name" : "Hadoop:service=NameNode,name=NameNodeStatus", | |
"modelerType" : "org.apache.hadoop.hdfs.server.namenode.NameNode", | |
"State" : "active", | |
"NNRole" : "NameNode", | |
"HostAndPort" : "localhost:19000", | |
"SecurityEnabled" : false, | |
"LastHATransitionTime" : 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install and Configure Cntlm: | |
1. Configure EPEL Repo and install cntlm | |
yum install cntlm | |
3. Generate hashes for password-less configuration and add one of the values to /etc/cntlm.conf | |
cntlm -u <user>@<domain> -H | |
3. vi /etc/cntlm.conf | |
Username <Username> | |
Domain <Domain> | |
PassNTLMv2 BCB555F5BA8709B8186C2A813C47A4BD # Only for user '<user>', domain '<domain>' | |
Proxy <ProxyServer>:<Port> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from webhdfs.webhdfs import WebHDFS | |
import os, tempfile | |
import time | |
webhdfs = WebHDFS("localhost", 50070, "luckow") | |
webhdfs.mkdir("/hello-world/") | |
# create a temporary file | |
f = tempfile.NamedTemporaryFile() |
NewerOlder