汉化Ambari的方法

1.常规汉化修改
  仪表盘主界面相关汉化 :
   ambari-web/app/messages.js 
    编译后==> ambari-web/public/javascripts/app.js
    安装后==> /usr/lib/ambari-server/web/javascripts/app.js
 管理员界面相关汉化:ambari-admin/src/main/resources/ui/admin-web/app/scripts/i18n.config.js
  编译后==>不变 
  安装后==>/var/lib/ambari-server/resources/views/work/ADMIN_VIEW{2.4.0.0}/scripts/main.js
ambari-admin\src\main\resources\ui\admin-web\app\scripts\controllers\mainCtrl.js
/ambari-admin/src/main/resources/ui/admin-web/app/views/modals/AboutModal.html
ambari\ambari-admin\src\main\resources\ui\admin-web\app\index.html
2. 主页底部版权信息的修改
    修改ambari-web/app/assets/index.html
    编译后==>  ambari-web/public/index.html    
   安装后 ==> /usr/lib/ambari-server/web/index.html
3.登录框修改
  ambari-web/app/templates/login.hbs
  编译后==>    public/javascripts/app.js
   安装后==> /usr/lib/ambari-server/web/javascripts/app.js
4.DashBoard 页头
   /ambari-web/app/templates/application.hbs
   编译后==>    public/javascripts/app.js
   安装后==> /usr/lib/ambari-server/web/javascripts/app.js
5.关于信息页面
  1)仪表盘的关于信息:ambari-web/app/templates/common/about.hbs
   编译后==>    public/javascripts/app.js
   安装后==> /usr/lib/ambari-server/web/javascripts/app.js
  2)管理界面的关于信息:/ambari-admin/src/main/resources/ui/admin-web/app/views/modals/AboutModal.html
  编译后==>     不变
  安装后==> /var/lib/ambari-server/resources/views/work/ADMIN_VIEW{2.4.0.0}/views/modals/AboutModal.html
    
 6.样式修改
    ambari-web/app/styles/common.less
    ambari-web/app/styles/application.less
  编译后==>  ambari-web/public/stylesheets/app.css
  安装后==>  /usr/lib/ambari-server/web/stylesheets/app.css
7.基于BootsStrap的修改    
    修改  ambari-web/vendor/styles/bootstrap.css
  编译后==>  ambari-web/public/stylesheets/vendor.css
  安装后==>  /usr/lib/ambari-server/web/stylesheets/vendor.css  
    例如:
    将body的font-family改为更适合中文字体显示
    "Arial","Microsoft YaHei","黑体","宋体",sans-serif;
8 汉化权限名
修改
 /ambari/ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql
9 关于告警的汉化
ambari\ambari-server\src\main\resources\common-services\ACCUMULO\1.6.1.2.2.0\alerts.json
ambari\ambari-server\src\main\resources\common-services\AMBARI_INFRA\0.1.0\alerts.json
ambari\ambari-server\src\main\resources\common-services\AMBARI_METRICS\0.1.0\alerts.json
ambari\ambari-server\src\main\resources\common-services\ATLAS\0.1.0.2.3\alerts.json
ambari\ambari-server\src\main\resources\common-services\FALCON\0.5.0.2.1\alerts.json
ambari\ambari-server\src\main\resources\common-services\FLUME\1.4.0.2.0\alerts.json
ambari\ambari-server\src\main\resources\common-services\GANGLIA\3.5.0\alerts.json
ambari\ambari-server\src\main\resources\common-services\HAWQ\2.0.0\alerts.json
ambari\ambari-server\src\main\resources\common-services\HBASE\0.96.0.2.0\alerts.json 
ambari\ambari-server\src\main\resources\common-services\HDFS\2.1.0.2.0\alerts.json 
ambari\ambari-server\src\main\resources\common-services\HIVE\0.12.0.2.0\alerts.json 
ambari\ambari-server\src\main\resources\common-services\KAFKA\0.9.0\alerts.json 
ambari\ambari-server\src\main\resources\common-services\KNOX\0.5.0.2.2\alerts.json 
ambari\ambari-server\src\main\resources\common-services\LOGSEARCH\0.5.0\alerts.json 
ambari\ambari-server\src\main\resources\common-services\OOZIE\4.2.0.2.3\alerts.json 
ambari\ambari-server\src\main\resources\common-services\PXF\3.0.0\alerts.json 
ambari\ambari-server\src\main\resources\common-services\RANGER\0.6.0\alerts.json 
ambari\ambari-server\src\main\resources\common-services\RANGER_KMS\0.5.0.2.3\alerts.json 
ambari\ambari-server\src\main\resources\common-services\SPARK\1.2.1\alerts.json 
ambari\ambari-server\src\main\resources\common-services\SPARK2\2.0.0\alerts.json 
ambari\ambari-server\src\main\resources\common-services\YARN\2.1.0.2.0\alerts.json 
ambari\ambari-server\src\main\resources\common-services\ZEPPELIN\0.6.0.2.5\alerts.json 
ambari\ambari-server\src\main\resources\alerts.json 
ambari\ambari-server\src\main\resources\alert-templates.xml
--------------------- 
作者:WangPing1223 
来源:CSDN 
原文:https://blog.csdn.net/WangPing1223/article/details/77499028 
版权声明:本文为博主原创文章,转载请附上博文链接!

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值