Cloudera hadoop上的一些问题
来源:互联网 发布:新疆卫生系统网络直报 编辑:程序博客网 时间:2024/05/16 03:07
- 日志存放的原理
cloudera的日志一般都存放在/var/log里面
* zookeeper
* spark
* hive
* hadoop-hdfs
* hadoop-yarn
* cloudera-scm-server
* cloudera-scm-agent
http://blog.cloudera.com/blog/2009/09/apache-hadoop-log-files-where-to-find-them-in-cdh-and-what-info-they-contain/
日志都是由Hadoop守护进程来创建
These logs are createdby the Hadoop daemons, and exist on all machines running at least one Hadoopdaemon. Some of the files end with .log, and others end with .out. The .outfiles are only written to when daemons are starting. After daemons have startedsuccessfully, the .out files are truncated. By contrasts, all log messages canbe found in the .log files, including the daemon start-up messages that aresent to the .out files. There is a .log and .out file for each daemon runningon a machine. When the namenode, jobtracker, and secondary namenode are runningon the same machine, then there are six daemon log files: a .log and .out forthe each of the three daemons.
the logs are stored in a few different places and retained for acertain amount of time (or forever).
/etc/cloudera-scm-server/log4j.propertieslog4j的配置文件
各个组件安装的位置/opt/cloudera/parcels/CDH-5.12.0-1.cdh5.12.0.p0.29
log日志文件通过log4j记录的,大部分应用程序的日志消息都写到该日志文件中,故障诊断的首要步骤即为检查该文件。【此日志文件最重要】
out日志文件记录标准输出和标准错误日志,由于大多日志均使用log4j输出至log日志文件中,因此此文件很小或者为空。系统仅保留最新的5个日志。
- 主机信息存放的地方,以及展示原理
查找到集群信息存储的位置 /var/lib/cloudera-scm-server/commands/55, /var/lib/cloudera-scm-server/commands/300
http://10.59.2.168:7180/api/v4/cm/deployment
返回配置信息
集群信息
http://10.59.2.168:7180/api/v13/clusters/
http://10.59.2.168:7180/api/v13/hosts
服务监控,主机监控,行为监控
也可以通过API访问CM获取主机配置信息, 服务的信息
通过tsquery language获取数据
内存使用状况信息http://10.59.2.168:7180/api/v13/timeseries?query=select%20physical_memory_used&from=2017-8-6&to=2017-8-9
其他信息描述
Python http://cloudera.github.io/cm_api/docs/python-client/
Java
- cloudera的报警机制,如何与公司的报警服务相对接
- 报警机制
cloudera提供了一些报警服务,其中包括主机的运行情况,各组件的运行状况,日志和活动等信息,并且可以设置报警事件的阀值。
- 邮件报警机制
可以配置邮件报警的方法进行报警
配置报警邮件的属性:
- Display the Cloudera Management Service status page.
- Click the Configuration tab.
- Select Scope > Alert Publisher.
- Select Category > Main to see the list of properties. To receive email alerts, you must set (or verify) the following settings:
Enable email alerts
Email protocol to use.
Your mail server hostname and port.
The username and password of the email user that will be loggedinto the mail server as the "sender" of the alert emails.
A comma-separated list of email addresses that will be therecipients of alert emails.
The format of the email alert message. Select json if you need themessage to be parsed by a script or program.
If more than one role group applies to this configuration, edit thevalue for the appropriate role group. See Modifying Configuration PropertiesUsing Cloudera Manager.
- Click the Save Changes button at the top of the page to save your settings.
- Restart the Alert Publisher role.
- SNMP消息转发机制
此服务只在cloudera收费版中提供
https://www.cloudera.com/documentation/enterprise/5-11-x/topics/cm_ag_snmp.html
- 设置alter脚本
此服务只在cloudera收费版中提供
https://www.cloudera.com/documentation/enterprise/5-11-x/topics/cm_ag_alert_script.html
API文档
http://cloudera.github.io/cm_api/javadoc/5.8.0/index.html
- Cloudera hadoop上的一些问题
- cloudera hadoop 安装问题
- CentOS 7.1 上安装Cloudera Manager 管理的Hadoop
- cloudera上的文章
- 对Cloudera Hadoop多一些了解
- Cloudera提供的Hadoop视频教程
- 使用cloudera的hadoop资料
- ubuntu11.04上cloudera cdh3u0的hadoop和hbase分布式安装
- 将Chukwa 0.5部署在基于Cloudera CDH4的Hadoop集群上
- ubuntu11.04上cloudera cdh3u0的hadoop和hbase分布式安装
- hadoop遇到的一些问题
- hadoop的一些基本问题
- Cloudera : Apache Hadoop的一个发行版本
- hadoop版本及cloudera的CDH3 CDH4
- hadoop版本及cloudera的CDH3 CDH4
- Hadoop版本及cloudera的CDH3 CDH4
- Cloudera CDH5 Hadoop集群的搭建
- CDH(Cloudera)版本的 Hadoop
- BZOJ 2427: [HAOI2010]软件安装
- CentOS 7 YUM 10分钟快速安装 LNMP 环境详细教程
- Android TextView 自动排版工具类
- Spring 源码解析之HandlerMapping源码解析(一)
- 安装github
- Cloudera hadoop上的一些问题
- windows下安装配置Jenkins
- 【codevs 1001】舒适的路线
- div显示未展示内容,有条件的隐藏内筒
- Android--------工具类StatusBarUtil实现完美状态栏
- 数据库服务器构建和部署最佳实践
- 【牛客网】直通bat-面试算法精品课_第2章 排序 2.6 快速排序练习题(JAVA版)
- 第一次面试,第一次写博客20170928
- Unity AssetBundle爬坑手记