java cp 和 hadoop cp

java -cp "/opt/cloudera/parcels/CDH/lib/hbase/conf/:/opt/cloudera/parcels/CDH/lib/hbase/hbase-common.jar:/opt/cloudera/parcels/CDH/lib/hbase/hba...

2015-04-30 21:29:09

阅读数:408

评论数:0

部署微博自动爬取组件

#!/bin/bash THIS_PATH='/home/bigdata/script/weibo-userid' cd $THIS_PATH if [ -z "$1" ];then    echo "please input date,The dat...

2015-04-30 21:24:55

阅读数:351

评论数:0

phoenix access hbase

java -cp "$HADOOP_HOME/../phoenix/phoenix-4.0.0-incubating/hadoop-1/phoenix-4.0.0-incubating-client.jar:phoenixTest-1.0-SNAPSHOT-jar-with-depend...

2014-09-04 22:01:49

阅读数:415

评论数:0

impala access hive table

HADOOP_CLIENT_DIR=/opt/cloudera/parcels/CDH/lib/hadoop/client/   HIVE_LIB_DIR=/opt/cloudera/parcels/CDH/lib/hive/lib   IMPALA_LIB_DIR=/opt/cloudera...

2014-09-04 22:01:01

阅读数:453

评论数:0

mapreduce access hive table

$ export HCAT_HOME=/usr/lib/hcatalog $ export HIVE_HOME=/usr/lib/hive $ HCATJAR=$HCAT_HOME/share/hcatalog/hcatalog-core-0.5.0-cdh4.3.0.jar $ HCATPIGJ...

2014-09-04 22:00:02

阅读数:441

评论数:0

不常用的命令

centoos 安装 rz和sz: yum -y install lrzsz

2014-06-09 22:33:50

阅读数:399

评论数:0

hadoop-0.20-env.sh

# Set Hadoop-specific environment variables here. # The only required environment variable is JAVA_HOME. All others are # optional. When running a...

2014-06-05 20:27:52

阅读数:470

评论数:0

exp_start.sh

#! /usr/bin/expect set hostno [lindex $argv 0] set passwd [lindex $argv 1] set CD_HOME [lindex $argv 2] set commond [lindex $argv 3] spawn ssh...

2014-04-27 20:23:08

阅读数:427

评论数:0

stop_all.sh

#! /bin/bash     ./exp_start.sh hadoop@master1 '1234' "cd $HADOOP_HOME" 'sbin/stop-yarn.sh'     ./exp_start.sh hadoop@master1 '1234' &quo...

2014-04-27 20:22:27

阅读数:494

评论数:0

start_all.sh

#! /bin/bash for host1 in  master1 master1-s slave1 do     ./exp_start.sh hadoop@$host1 '1234' "cd $ZOOKEEPER_HOME" 'bin/zkServer.sh st...

2014-04-27 20:21:52

阅读数:570

评论数:0

count.sh

#! /bin/bash tmpfile=`date '+%Y%m%d%H%M%S'`.txt echo $tmpfile for i in `find /home/hadoop/tmp/log -name localhost*` do echo $i if[ -s $i ] then...

2014-04-27 20:20:26

阅读数:414

评论数:0

python------大脚印

1,程序媛都懂的hello word!       print 'hello world' 2,占位符 print "%s is number %d" % ("daidai",1) 3,中文输出 #! /usr/bin/env python...

2014-03-12 18:00:42

阅读数:435

评论数:0

perl----

 第一课、Perl 概述 Perl概述 第一个Perl程序 提问并保留结果 增加选择 猜测密码   别期望在一刻钟内就能领略Perl的所有神奇之处, 这种情况很像吃香蕉, 用不着吃完整只香蕉后才知其味,每咬一口都是享受,并促使你再咬下一口,再下一口。   ...

2014-03-11 15:08:57

阅读数:584

评论数:0

python-十分钟入门

http://developer.51cto.com/art/201207/347006.htm  python十分钟入门 http://sebug.net/paper/python/                            简明python教程 【简介】 Py...

2014-03-06 12:04:51

阅读数:736

评论数:0

python入门地址

http://linux.chinaunix.net/techdoc/beginner/2008/05/05/1000568.shtml

2014-02-28 10:02:29

阅读数:494

评论数:0

Shell学习总结

1,shell的基本元素 (1) #!/bin/bash ,指出shell的类型 (2)# 注释 (3)变量 (4)控制 2,一个简单的Shell程序 #!/bin/bash shell类型 #a simple shell script e...

2014-01-18 13:17:44

阅读数:1100

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭