如何从远程计算机访问本地计算机中的浏览器 [英] how to access to my browser in local machine from remote machine

查看:381
本文介绍了如何从远程计算机访问本地计算机中的浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因为我在远程计算机上运行spark应用程序,并且希望查看进度,所以我需要从浏览器访问spark Web UI。

because I run spark application on my remote machine and I want to see the progress so I need to access to spark web UI from a browser.

我应该做什么是否能够从运行我的spark应用程序的远程计算机在本地计算机上运行我的浏览器firefox?

What should I do to be able to run my browser firefox on my local machine from the remote one in which I run my spark application?

如果远程(远程)计算机具有IP地址:

If the distant (remote) one has an IP address:

192.yy.yy.yy

知道我用来从本地计算机访问远程计算机

knowing that I use to access to remote machine from my local one

ssh name@xx.xx.xx.xx

ps:我只能使用命令与远程计算机进行交互

ps: I can interact with the remote machine only using commands.

推荐答案

每个SparkContext都会默认在端口4040上启动一个Web UI,该Web UI显示有关该应用程序的有用信息。其中包括:

Every SparkContext launches a web UI, by default on port 4040, that displays useful information about the application. This includes:


  • 调度程序阶段和任务列表

  • RDD大小和内存的摘要用法

  • 环境信息。

  • 有关正在运行的执行程序的信息

  • A list of scheduler stages and tasks
  • A summary of RDD sizes and memory usage
  • Environmental information.
  • Information about the running executors

您只需打开 http://192.yy.yy.yy:4040即可访问此界面在网络浏览器中。如果多个SparkContext在同一主机上运行,​​它们将绑定到以4040(4041、4042等)开头的连续端口。

You can access this interface by simply opening http://192.yy.yy.yy:4040 in a web browser. If multiple SparkContexts are running on the same host, they will bind to successive ports beginning with 4040 (4041, 4042, etc).

来源:监视Spark

现在您已经有了管理服务器之间,您需要创建隧道以访问Spark UI,使用 ssh -L 4041:192.yy.yy.yy:4041 name@xx.xx.xx.xx ,然后通过 localhost:4041

Now that you have a management server in between, you need to create tunnel to access spark UI, to create tunnel use ssh -L 4041:192.yy.yy.yy:4041 name@xx.xx.xx.xx and then access spark UI through localhost:4041

这篇关于如何从远程计算机访问本地计算机中的浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆