首页 \ 问答 \ 如何获得原始的hadoop指标(How to get raw hadoop metrics)

如何获得原始的hadoop指标(How to get raw hadoop metrics)

对不起,如果这个问题是重复的,到目前为止我还没有找到满意的答案。

是否有可能获得hadoop2指标的原始数据? (例如,以文本文件/ json格式)

根据https://wiki.apache.org/hadoop/GangliaMetrics ,我知道我可以使用ganglia(或者可能是nagios)获取指标并监控hadoop集群。 但是,我想要的是原始数据,用于我自己的分析目的。


sorry if this question is a duplicate, so far I haven't been able to find a satisfactory answer.

Is it possible to get the raw data of hadoop2 metrics? (e.g. in text file/json format)

According to https://wiki.apache.org/hadoop/GangliaMetrics, I know that I can use ganglia (or maybe nagios) to get the metrics and monitor hadoop cluster. However, what I want is the raw data, for my own analysis purpose.


原文:https://stackoverflow.com/questions/30728357
更新时间:2022-01-24 12:01

最满意答案

我得到了答案这是用javascript编写的代码

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript">
        window.onload = invokeService();
        function invokeService() {
            $(document).ready(function () {


                //   Additional way of calling WCF service using getJSON() JQuery method
                $.getJSON("http://localhost/WcfJsonRestService/Albums/rjinfo", {},
                    function (data) {
                         alert("hello " + data);

                    });
            });
            }


    </script>

I had got the answer Here is the code written in javascript

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript">
        window.onload = invokeService();
        function invokeService() {
            $(document).ready(function () {


                //   Additional way of calling WCF service using getJSON() JQuery method
                $.getJSON("http://localhost/WcfJsonRestService/Albums/rjinfo", {},
                    function (data) {
                         alert("hello " + data);

                    });
            });
            }


    </script>

相关问答

更多
  • 是的,使用OnStart方法。 一旦Windows服务从操作系统获得START命令,它就会被触发。 把你的“触摸”代码(逻辑)放在那里。 Yes, use OnStart method for this. It will be triggered once the Windows service gets a START command from OS. Put your "touch" code (logic) there.
  • ASP.NET默认用户没有对TEMP文件夹的写入权限。 发布答案希望有一天晚些时候会有所帮助! ASP.NET default user was not having write access to TEMP folder. Posting the answer in hope it would be helpful later, some day!
  • 我得到了答案这是用javascript编写的代码