更新时间:2024-03-27 GMT+08:00
分享

查看Linux调测结果

操作场景

HBase应用程序运行完成后可通过如下方式查看应用程序的运行情况。

  • 通过运行结果查看应用程序运行情况。
  • 通过HBase日志获取应用程序运行情况。
  • 登录HBase WebUI查看应用程序运行情况。可参见更多信息 > 对外接口 > Web UI
  • 通过HBase shell命令查看应用程序运行情况。可参见更多信息 > 对外接口 > Shell

操作步骤

  • 通过运行日志可查看应用提交后的执行详情,例如,hbase-example样例运行成功后,显示信息如下:
    2280 [main] INFOcom.huawei.hadoop.hbase.example.HBaseSample- Entering testCreateTable.
    3091 [main] WARNcom.huawei.hadoop.hbase.example.HBaseSample- table already exists
    3091 [main] INFOcom.huawei.hadoop.hbase.example.HBaseSample- Exiting testCreateTable.
    3091 [main] INFOcom.huawei.hadoop.hbase.example.HBaseSample- Entering testPut.
    3264 [main] INFOcom.huawei.hadoop.hbase.example.HBaseSample- Put successfully.
    3264 [main] INFOcom.huawei.hadoop.hbase.example.HBaseSample- Exiting testPut.
    3264 [main] INFOcom.huawei.hadoop.hbase.example.HBaseSample- Entering testGet.
    3283 [main] INFOcom.huawei.hadoop.hbase.example.HBaseSample- 012005000201:info,address,Shenzhen, Guangdong
    3283 [main] INFOcom.huawei.hadoop.hbase.example.HBaseSample- 012005000201:info,name,yugeZhang San
    3283 [main] INFOcom.huawei.hadoop.hbase.example.HBaseSample- Get data successfully.
    3283 [main] INFOcom.huawei.hadoop.hbase.example.HBaseSample- Exiting testGet.
    3283 [main] INFOorg.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation- Closing zookeeper sessionid=0xd000035eba278e9
    3297 [main] INFOorg.apache.zookeeper.ZooKeeper- Session: 0xd000035eba278e9 closed
    3297 [main-EventThread] INFOorg.apache.zookeeper.ClientCnxn- EventThread shut down
    -----------finish HBase -------------------
  • HBase/Phoenix对接SpringBoot运行结果:

    在浏览器上访问链接“http://样例运行节点IP地址:8080/hbase/HBaseDemo”和“http://样例运行节点IP地址:8080/hbase/PhoenixDemo”,IDEA正常打印日志,请求返回“finish HBase”和“finish Phoenix",如下图所示:

    图1 返回“finish HBase”
    图2 返回“finish Phoenix"
分享:

    相关文档

    相关产品