ember-highcharts插件

1. npm安装highcharts

1
npm install highcharts --save

2. ember引入highcharts插件

1
2
3
4
# 文件:
ember-cli-build.js
# 第9行添加:
app.import("node_modules/highcharts/highcharts.js");

3. 编写代码

阅读更多

EmberJS基础

1. 安装Ember.js

1
npm install -g ember-cli@3.0

2. 构建应用,并启动服务

阅读更多

Ambari 之 License 弹窗

声明:博主写了一些 Ambari 系列文章,可以在历史文章中查看。

1. 修改.hbs 文件

1
2
3
4
# 目录:
/app/templates/main/menu_item.hbs
# 第 36 行添加内容:
<li><a href="" id=""{{action showLicensePopup target="controller"}}>License 管理 </a></li>

2. 增加模板

阅读更多

Ambari 之 License 管理

声明:博主写了一些 Ambari 系列文章,可以在历史文章中查看。

1. 在 admin 菜单栏增加一个选项


1
2
3
4
5
6
7
8
9
10
11
# 路径:
/app/views/main/menu.js
# 第 148 行添加:
// license 管理
if (true) {
categories.push({
name: 'ServiceLicense',
url: 'ServiceLicense',
label: 'License Management'
//disabled: App.get('upgradeInProgress') || App.get('upgradeHolding')
});}

2. 左侧菜单栏增加一个选项

阅读更多

hive2知识点总结

1. hive配置文件

1
/etc/hive/2.6.4.0-91/0

2. hive2启动

1
hive

3. hive2查看外部表还是内部表

阅读更多

hive2问题集锦

1. hive2查询表内容-中文乱码

1
hive在将数据写入hdfs时候,会把数据格式转换为utf-8格式的。如果你导入hive表的源数据不是utf-8格式的,hive在进行写hdfs转换格式的时候会出现乱码,所有查询出来的中文也是乱码。
1
解决办法:将文件设置为‘utf-8格式’,然后重新导入表。

阅读更多

HDFS问题集锦

1. 使用root身份,执行hdfs相关操作,报权限问题

1
mkdir: Permission denied: user=root, access=WRITE, inode="/1":hdfs:hdfs:drwxr-xr-x

解决办法:

1
2
3
4
# 方式一:使用hdfs用户执行hdfs相关操作
sudo -u hdfs hdfs dfs -mkdir /lyz01
# 方式二:设置dfs.permissions.enabled
在 ambari页面修改hdfs的配置,找到dfs.permissions.enabled,使其值为false。

2. Restart NameNode 失败

阅读更多

Ambari编译问题集锦

声明:博主写了一些Ambari系列文章,可以在历史文章中查看。

1. ambari-web npm install失败

解决办法:

手动将压缩包下载并按照报错指示拷贝到/tmp/phantomjs/目录下,重新npm install。(能翻墙就翻墙)

阅读更多

Ambari v2.6编译

声明:博主写了一些Ambari系列文章,可以在历史文章中查看。

一、Ambari-web二次开发

ambari-web可以单独编译,用来修改ambari UI页面。采用ember.js(版本:v1.0.pre)作为前端MVC框架和NodeJS相关工具,用handlebars.js作为页面渲染引擎,在CSS/HTML方面还用了Bootstrap(v2.1.1)框架。

Ambari-web目录结构:

阅读更多

Samba安装配置

一、yum安装samba

  1. 安装samba

    1
    yum -y install samba
  2. 重启samba服务

    1
    service smb restart
  3. 创建samba用户,此用户必须是linux上已经建立的,并输入密码

阅读更多