07 2015 档案

摘要:Describe Database Describe Table/View/Column hive> DESCRIBE user_info_bucketed; user_id bigint firstname string lastname string ds string # Partition 阅读全文
posted @ 2015-07-25 21:12 智能先行者 阅读(4542) 评论(0) 推荐(1)
摘要:hive> SHOW FUNCTIONS;!!=%&*+-/===>>=^absacosadd_monthsandarrayarray_containsasciiasinassert_trueatanavgbase64betweenbincasecbrtceilceilingcoalescecoll... 阅读全文
posted @ 2015-07-25 20:45 智能先行者
摘要:Show Tables Show Partitions Show Table Properties Show Create Table Show Indexes Show Columns Show Functions Show Conf 阅读全文
posted @ 2015-07-25 10:54 智能先行者
摘要:mysql> select TBL_ID,CREATE_TIME,LAST_ACCESS_TIME,TBL_NAME,TBL_TYPE from TBLS; +--------+-------------+------------------+----------------------+---------------+ | TBL_ID | CREATE_TIME | LAST_ACCESS_... 阅读全文
posted @ 2015-07-20 23:52 智能先行者
摘要:mysql> select concat('Hadoop:','Hive:','Spark#','HBase;',TBL_TYPE,'{}',SD_ID) from TBLS; | Hadoop:Hive:Spark#HBase;MANAGED_TABLE{}6 | | Hadoop:Hive:Sp 阅读全文
posted @ 2015-07-20 23:37 智能先行者 阅读(497) 评论(0) 推荐(0)
摘要:The CLUSTERED BY and SORTED BY creation commands do not affect how data is inserted into a table – only how it is read. This means that users must be ... 阅读全文
posted @ 2015-07-20 22:54 智能先行者
摘要:当前session可以直接用prompt修改 mysql> prompt \u@\h \d \r:\m:\s>PROMPT set to '\u@\h \d \r:\m:\s>'root@localhost mysql 02:06:38> 还可以在my.cnf配置文件中[mysql]添加(注意不是[ 阅读全文
posted @ 2015-07-18 14:11 智能先行者
摘要:转自http://shiyanjun.cn/archives/588.htmlHive是基于Hadoop平台的,它提供了类似SQL一样的查询语言HQL。有了Hive,如果使用过SQL语言,并且不理解Hadoop MapReduce运行原理,也就无法通过编程来实现MR,但是你仍然可以很容易地编写出特定... 阅读全文
posted @ 2015-07-17 22:29 智能先行者
摘要:日志记录器(Logger)是日志处理的核心组件。log4j具有7种级别(Level)。日志记录器(Logger)的可用级别Level (不包括自定义级别 Level)优先级从高到低:OFF、FATAL、ERROR、WARN、INFO、DEBUG、TRACE、ALLOFFOFF Level是最高等级的 阅读全文
posted @ 2015-07-12 20:28 智能先行者
摘要:[hadoop@master hadoop]$ hive -S -e 'set -v'|grep querylog|grep -E -v 'CLASSPATH|class'hive.querylog.enable.plan.progress=truehive.querylog.location=/h... 阅读全文
posted @ 2015-07-12 20:26 智能先行者
摘要:hive> desc database extended wx_test; OK wx_test hdfs://ns1/user/hive/warehouse/wx_test.db hadoop USER {t_date=2015-06-21, creator=wx} Time taken: 0.027 seconds, Fetched: 1 row(s) hive> desc form... 阅读全文
posted @ 2015-07-12 20:17 智能先行者
摘要:[hadoop@master ~]$ alias hdfs='hadoop dfs'[hadoop@master ~]$ hdfs -ls /drwxrwxr-x - hadoop supergroup 0 2015-07-11 21:41 /tmpdrwxrwxr-x - hadoop super... 阅读全文
posted @ 2015-07-12 20:14 智能先行者
摘要:设置root密码 “mariabd”是新密码 [root@master /]# mysqladmin -u root password mariadb [root@master /]# mysql -u root -p Enter password: Welcome to the MariaDB m 阅读全文
posted @ 2015-07-12 20:11 智能先行者
摘要:1.Xtradb和InnoDB是一个很好的通用事物存储引擎。通常不确定选用何种存储引擎时,Xtradb和InnoDB是最佳的选择。2.MyISAM和Aria,占用空间小,系统之间容易复制。MyISAM是MySQL最悠久的存储引擎,而Aria是MariaDB更好的改良。3.TokuDB是一个优化不适合 阅读全文
posted @ 2015-07-12 20:10 智能先行者
摘要:0是假 NULL、NA无法辨认真假 除了以上3个其他的都是真 > if (NULL) print("OK") else print("Error") Error in if (NULL) print("OK") else print("Error") : argument is of length zero > if (NA) print("OK") else print("Erro... 阅读全文
posted @ 2015-07-10 22:48 智能先行者
摘要:> x<-1:3 > typeof(x) [1] "integer" > y<-c(1,3,4) > typeof(y) [1] "double" > x==y [1] TRUE FALSE FALSE > all(x==y) [1] FALSE > x<-1:3 > typeof(x) [1] " 阅读全文
posted @ 2015-07-01 20:42 智能先行者
摘要:grep(pattern, x, ignore.case = FALSE, perl = FALSE, value = FALSE, fixed = FALSE, useBytes = FALSE, invert = FALSE) grepl(pattern, x, ignore.case = FA 阅读全文
posted @ 2015-07-01 20:41 智能先行者