2016年1月6日

Ubuntu server12.04导入163源

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2016-01-06 21:07 小米辣 阅读(8) 评论(0) 推荐(0) 编辑

Ubuntu server12.04 eth0网卡启动

摘要: 当ifconfig时只有本地lo端口启动,无eth0网口启动时,需要手动启动:sudo ifconfig eth0 up静态配置ip方式:1、设置ipsudo /etc/netword/interfaces添加以下内容:auto eth0iface eth0 inet staticaddress i... 阅读全文

posted @ 2016-01-06 20:34 小米辣 阅读(1006) 评论(0) 推荐(0) 编辑

2015年12月7日

shell脚本中head命令的使用

摘要: shell脚本中head命令的使用在写shell脚本时,例如for循环中使用到了head命令错误的使用方式是:for i in $maptask;(此处少了;可加可不加)do #cat typescript | grep "number of splits:"* | awk -F ' ' '{pri... 阅读全文

posted @ 2015-12-07 20:17 小米辣 阅读(3760) 评论(0) 推荐(0) 编辑

Linux 系统命令(cd之类的)在shell脚本中无效解析

摘要: Linux 系统命令(cd之类的)在shell脚本中无效解析问题:在Ubuntu的终端上我们常用的cd之类的基本命令当写入shell脚本后,运行脚本该命令不能实现跳转(如./test)原因:执行shell脚本是在子shell上执行的,当shell脚本执行完退出子shell,所以看不到结果解决方法:s... 阅读全文

posted @ 2015-12-07 12:54 小米辣 阅读(1665) 评论(0) 推荐(0) 编辑

2015年12月2日

mysql通过sqoop导入到hbase中时数据量为1000w时出现Incorrect key file for table '/tmp/#sql_458_0.MYI'; try to repair it

摘要: 问题:mysql通过sqoop导入到hbase中时数据量为1000w时出现Incorrect key file for table '/tmp/#sql_458_0.MYI'; try to repair it,数据量为100w等时没该问题分析:出现该问题时因为mysql的临时目录(默认为/tmp)... 阅读全文

posted @ 2015-12-02 15:34 小米辣 阅读(214) 评论(0) 推荐(0) 编辑

hbase ERROR: Can't get master address from ZooKeeper; znode data == null问题解答

摘要: 当启动hbase后查看日志出现类似下面的错误日志,并且hbase shell进入hbase后,list下会出现(ERROR: Can't get master address from ZooKeeper; znode data == null)2015-12-02 10:56:13,413 INF... 阅读全文

posted @ 2015-12-02 11:07 小米辣 阅读(2415) 评论(0) 推荐(0) 编辑

2015年12月1日

“Incompatible clusterIDs”错误原因分析

摘要: “Incompatible clusterIDs”错误原因分析启动hadoop后,从节点的没有启动(jps后),无datanode,查看日志,发现java.io.IOException: Incompatible clusterIDs in /data/hadoop/hadoop-2.5.2/dat... 阅读全文

posted @ 2015-12-01 10:40 小米辣 阅读(616) 评论(0) 推荐(0) 编辑

2015年11月18日

mysql设置远程登录后连接不上

摘要: mysql设置远程登录后连接不上参考:http://www.jb51.net/article/33813.htmhttp://www.jb51.net/article/58096.htm默认情况下,MySQL只允许本地登录,如果要开启远程连接,则需要修改/etc/my.cnf文件sudo vim /... 阅读全文

posted @ 2015-11-18 19:40 小米辣 阅读(447) 评论(0) 推荐(0) 编辑

Mysql导入数据:编码问题和权限问题(Linux)

摘要: 1、创建数据库CREATE DATABASE `itpv` CHARACTER SET 'gbk' COLLATE 'gbk_chinese_ci';2、更改数据库编码mysql> show variables like "%char%"; +--------------------------+-... 阅读全文

posted @ 2015-11-18 16:45 小米辣 阅读(360) 评论(0) 推荐(0) 编辑

hbase启动后出错

摘要: hbase启动后出错问题:安装好 hbase 后,发现启动start-hbase.sh 后 hmaster 进程总是过一会就没了 hbase(main):004:0> create 't1', {NAME => 'f1', VERSIONS => 5} ERROR: Can't get maste... 阅读全文

posted @ 2015-11-18 16:09 小米辣 阅读(380) 评论(0) 推荐(0) 编辑

导航