ambari系列--报错问题2
来源:互联网 发布:iphone7和iphone8 知乎 编辑:程序博客网 时间:2024/06/03 15:18
ambari HDFS-HA 回滚
查看hdfs的信息
curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://centos1:8080/api/v1/clusters/hadoop1/services/HDFS
hadoop1为cluster名字,HDFS为服务名称
查看服务
centos1,datanode,journalnode,namenode
centos2,datanode,journalnode,SECONDARY_NAMENODE
centos3,datanode,journalnode,namenode
停止hdfs
curl -u admin:admin -H "X-Requested-By: ambari" -X PUT -d '{"RequestInfo": {"context":"Stop Service"},"Body":{"ServiceInfo":{"state":"INSTALLED"}}}' http://centos1:8080/api/v1/clusters/hadoop1/services/HDFS
查看各主机的组件角色
curl -u admin:admin -i http://centos1:8080/api/v1/clusters/hadoop1/host_components?HostRoles/component_name=NAMENODE
curl -u admin:admin -i http://centos1:8080/api/v1/clusters/hadoop1/host_components?HostRoles/component_name=SECONDARY_NAMENODE
curl -u admin:admin -i http://centos1:8080/api/v1/clusters/hadoop1/host_components?HostRoles/component_name=JOURNALNODE
curl -u admin:admin -i http://centos1:8080/api/v1/clusters/hadoop1/host_components?HostRoles/component_name=ZKFC
删除zkfc
curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://centos1:8080/api/v1/clusters/hadoop1/hosts/centos1.hadoop/host_components/ZKFC
curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://centos1:8080/api/v1/clusters/hadoop1/hosts/centos2.hadoop/host_components/ZKFC
启用SECONDARY_NAMENODE
curl -u admin:admin -H "X-Requested-By: ambari" -X POST -d '{"host_components" : [{"HostRoles":{"component_name":"SECONDARY_NAMENODE"}}] }' http://centos1:8080/api/v1/clusters/hadoop1/hosts?Hosts/host_name=centos2.hadoop
curl -u admin:admin -H "X-Requested-By: ambari" -X PUT -d '{"RequestInfo":{"context":"Enable Secondary NameNode"},"Body":{"HostRoles":{"state":"INSTALLED"}}}' http://centos1:8080/api/v1/clusters/hadoop1/hosts/centos2.hadoop/host_components/SECONDARY_NAMENODE
curl -u admin:admin -H "X-Requested-By: ambari" -X GET "http://centos1:8080/api/v1/clusters/hadoop1/host_components?HostRoles/component_name=SECONDARY_NAMENODE&fields=HostRoles/state"
删除journalnode
curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://centos1:8080/api/v1/clusters/hadoop1/host_components?HostRoles/component_name=JOURNALNODE
curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://centos1:8080/api/v1/clusters/hadoop1/hosts/centos1.hadoop/host_components/JOURNALNODE
curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://centos1:8080/api/v1/clusters/hadoop1/hosts/centos2.hadoop/host_components/JOURNALNODE
curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://centos1:8080/api/v1/clusters/hadoop1/hosts/centos3.hadoop/host_components/JOURNALNODE
删除额外的namenode:
curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://centos1:8080/api/v1/clusters/hadoop1/host_components?HostRoles/component_name=NAMENODE
curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://centos1:8080/api/v1/clusters//hadoop1/hosts/centos2.hadoop/host_components/NAMENODE
在ambari的页面上将 hdfs的配置版本信息改为HA之前的版本v2
HDFS->Configs
- ambari系列--报错问题2
- ambari系列--报错问题
- 启动ambari-server报错
- ambari-metrics编译报错
- Ambari Server编译报错
- ambari-agent启动报错
- Ambari编译报错:缺少setuptools模块
- Ambari 2.5.2源码编译报错:Too many files with unapproved license
- 启动Ambari报错: ERROR [ambari-client-thread-34] ContainerResponse:419
- Ambari系列(二):编译安装Ambari
- Ambari系列(三): Ambari架构详解
- Ambari系列(三): Ambari架构详解
- Ambari系列(二):编译安装Ambari
- ambari-server启动报错 mysqladmin flush-hosts
- ambari安装报错Registration with the server failed.
- 安装Ambari和部署HDP报错总结
- Ambari安装client报错OSError:[Error 17] File exists
- Ambari学习19_ssh 公钥认证报错:Permission denied (publickey,gssapi-keyex,gssapi-with-mic).解决2
- maven打包项目
- RxBinding基本使用
- Java 调 C 中遇到的字符串转换
- Java Thread.yield是个巨大的坑
- Java高并发,如何解决,什么方式解决
- ambari系列--报错问题2
- python元组与列表
- myeclipse安装maven
- Mac开发常用技巧
- Android总结的网站
- iOS开发: xib设置的button在选中状态之后显示小蓝点
- Android studio自动签名
- 033-Java-24
- 静态查找表