Quantcast
Channel: CodeSection,代码区,数据库(综合) - CodeSec
Viewing all articles
Browse latest Browse all 6262

Use SSH Tunneling to access Ambari web UI, ResourceManager, JobHistory, NameNode ...

$
0
0

Source:https://azure.microsoft.com/en-us/documentation/articles/hdinsight-linux-ambari-ssh-tunnel/

Original Author: Larry Franks

Excerpts ssh tunnel command ssh -C2qTnNf -D <a href="/cdn-cgi/l/email-protection" data-cfemail="e8d1d0dfde2a489d9b8d9ac58689858da885898b8081868dc58689858d">[email&nbsp;protected]</a>

This creates a connection that routes traffic to local port 9876 to the cluster over SSH. The options are:

D 9876 The local port that will route traffic through the tunnel. C Compress all data, because web traffic is mostly text. 2 Force SSH to try protocol version 2 only. q Quiet mode. T Disable pseudo-tty allocation, since we are just forwarding a port. n Prevent reading of STDIN, since we are just forwarding a port. N Do not execute a remote command, since we are just forwarding a port. f Run in the background.

Use the -i parameter and specify the path to the private SSH key.

For using Putty to setup the tunnel follow the source link.

Browser configuration

Setup browser based proxy switching tool such as foxy proxy suggested in source link.

Key configurations below,

Proxy server localhost:9876 Proxy type socks / socks 5 Auto routing configuration URL wildcard *management-node-hostname* (rule for routing to the proxy server)

Finally, open the URLs as you would on the remote machines’ browser.

http://ambari-management-node-hostname:8080/

Related posts: Uninstall Hortonworks HDP 2.2 Configure log files on HDP platform Hortonworks Data Platform Installation errata Missing manual How to identify what is consuming space in HDFS


Viewing all articles
Browse latest Browse all 6262

Trending Articles