[英]pull out metrics from spark logs
The spark history server keeps all that information for you. spark 历史服务器为您保留所有这些信息。 You can access it via a rest API.
您可以通过 rest API 访问它。
You can view the Spark web UIs by following the procedures to create an SSH tunnel or create a proxy in the section called Connect to the cluster in the Amazon EMR Management Guide and then navigating to the YARN ResourceManager for your cluster.
您可以按照创建 SSH 隧道或创建代理的过程查看 Spark web UI,方法是在 Amazon EMR 管理指南中称为“连接到集群”的部分中创建代理,然后导航到集群的 YARN ResourceManager。 Choose the link under Tracking UI for your application.
在您的应用程序的跟踪 UI 下选择链接。 If your application is running, you see ApplicationMaster.
如果您的应用程序正在运行,您会看到 ApplicationMaster。 This takes you to the application master's web UI at port 20888 wherever the driver is located.
这会将您带到应用程序主机的 web UI 端口 20888,无论驱动程序位于何处。 The driver may be located on the cluster's primary node if you run in YARN client mode.
如果您在 YARN 客户端模式下运行,驱动程序可能位于集群的主节点上。 If you are running an application in YARN cluster mode, the driver is located in the ApplicationMaster for the application on the cluster.
如果您在 YARN 集群模式下运行应用程序,则驱动程序位于集群上应用程序的 ApplicationMaster 中。 If your application has finished, you see History, which takes you to the Spark HistoryServer UI port number at 18080 of the EMR cluster's primary node.
如果您的应用程序已完成,您会看到历史记录,它会将您带到 EMR 集群主节点的 18080 处的 Spark HistoryServer UI 端口号。 This is for applications that have already completed.
这适用于已经完成的应用程序。 You can also navigate to the Spark HistoryServer UI directly at http://master-public-dns-name:18080/.
您还可以通过 http://master-public-dns-name:18080/ 直接导航到 Spark HistoryServer UI。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.