MAPREDUCE服务 MRS-查看Windows调测结果:操作步骤
操作步骤
- 运行结果会有如下成功信息:
... 2020-09-09 22:11:48,496 INFO [main] example.TestMain: Entering testCreateTable. 2020-09-09 22:11:48,894 INFO [main] example.TestMain: Creating table... 2020-09-09 22:11:50,545 INFO [main] example.TestMain: Master: 10-1-131-140,16000,1441784082485 Number of backup masters: 1 10-1-131-130,16000,1441784098969 Number of live region servers: 3 10-1-131-150,16020,1441784158435 10-1-131-130,16020,1441784126506 10-1-131-140,16020,1441784118303 Number of dead region servers: 0 Average load: 1.0 Number of requests: 0 Number of regions: 3 Number of regions in transition: 0 2020-09-09 22:11:50,562 INFO [main] example.TestMain: Lorg.apache.hadoop.hbase.NamespaceDescriptor;@11c6af6 2020-09-09 22:11:50,562 INFO [main] example.TestMain: Table created successfully. 2020-09-09 22:11:50,563 INFO [main] example.TestMain: Exiting testCreateTable. 2020-09-09 22:11:50,563 INFO [main] example.TestMain: Entering testMultiSplit. 2020-09-09 22:11:50,630 INFO [main] example.TestMain: MultiSplit successfully. 2020-09-09 22:11:50,630 INFO [main] example.TestMain: Exiting testMultiSplit. 2020-09-09 22:11:50,630 INFO [main] example.TestMain: Entering testPut. 2020-09-09 22:11:51,148 INFO [main] example.TestMain: Put successfully. 2020-09-09 22:11:51,148 INFO [main] example.TestMain: Exiting testPut. 2020-09-09 22:11:51,148 INFO [main] example.TestMain: Entering createIndex. ...
在Windows环境运行样例代码时会出现下面的异常,但是不影响业务:
java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
- HBase/Phoenix对接SpringBoot运行结果
在浏览器上访问链接“http://样例运行节点IP地址:8080/hbase/HBaseDemo”和“http://样例运行节点IP地址:8080/hbase/PhoenixDemo”,IDEA正常打印日志,请求返回“finish HBase”和“finish Phoenix",如下图所示:
图1 返回“finish HBase”
图2 返回“finish Phoenix"
- 日志说明
日志级别默认为INFO,可以通过调整日志打印级别(DEBUG,INFO,WARN,ERROR,FATL)来显示更详细的信息。可以通过修改“log4j.properties”文件来实现,如:
hbase.root.logger=INFO,console ... log4j.logger.org.apache.zookeeper=INFO #log4j.logger.org.apache.hadoop.fs.FSNamesystem=DEBUG log4j.logger.org.apache.hadoop.hbase=INFO # Make these two classes DEBUG-level. Make them DEBUG to see more zk debug. log4j.logger.org.apache.hadoop.hbase.zookeeper.ZKUtil=INFO log4j.logger.org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher=INFO ...
- MapReduce服务_如何使用MapReduce服务_MRS集群客户端安装与使用
- ModelArts分布式训练_分布式训练介绍_分布式调测
- 大数据分析是什么_使用MapReduce_创建MRS服务
- Git-For-Windows镜像下载
- GaussDB性能怎么调_GaussDB性能调优_高斯数据库性能怎么调-华为云
- 如何创建定时压测_性能测试服务_定时压测-华为云
- ModelArts模型训练_模型训练简介_如何训练模型
- ModelArts推理部署_在线服务_访问在线服务-华为云
- 性能测试使用教程_性能测试操作步骤_性能测试快速入门-华为云
- MapReduce服务_什么是MapReduce服务_什么是HBase