摘要:
Hive Command line OptionsUsage: Usage: hive [-hiveconf x=y]* []* [|] [-S] -i Initialization Sql from file (executed automatically and silently before any other commands) -e 'quoted query string' Sql from command line -f Sql from file -S Sil... 阅读全文
阅读排行榜
Hive内部自定义函数UDF
2013-07-11 14:30 by java20130722, 504 阅读, 收藏,
摘要:
HIVE UDF整理(一)关系运算等值比较: =语法:A = B 操作类型: 所有基本类型描述: 如果表达式A与表达式B相等,则为TRUE;否则为FALSE举例:hive> select 1 from dual where 1=1;1不等值比较: 语法: A B 操作类型: 所有基本类型描述: 如果表达式A为NULL,或者表达式B为NULL,返回NULL;如果表达式A与表达式B不相等,则为TRUE;否则为FALSE举例:hive> select 1 from dual where 1 2;1小于比较: select 1 from dual where 1 select 1 from 阅读全文
hive外部表和内部表
2013-03-21 14:32 by java20130722, 501 阅读, 收藏,
摘要:
1.内部表指hive创建并通过load data inpath进数据库的表,这种表可以理解为数据和表结构都保存在一起的数据表。当你通过DROP TABLE table_name 删除元数据中表结构的同时,表中的数据也同样会从hdfs中被删除。[sql]view plaincopyCREATETABLEnew_hbase_table(rowkeystring,xint,yint)STOREDBY'org.apache.hadoop.hive.hbase.HBaseStorageHandler'WITHSERDEPROPERTIES("hbase.columns.mapp 阅读全文
svn ignore使用方法
2012-09-28 04:03 by java20130722, 496 阅读, 收藏,
摘要:
1、创建一个svn的仓库:E:\> svnadmin create svn_server2、迁出svn仓库:D:\> svn co file:///e:/svn_server svn_client3、设置svnignore创建一个svnignore文件用于统一管理ignore选项,这里仅添加一行:*.class,用于排除java二进制文件注意,一行表示一个pattern,每行结束时不要有多余的字符,如空格等,否则会出现错误D:\svn_client> svn propset -R -F svnignore svn:ignore .提交:D:\svn_client> sv 阅读全文
计算方法之用高斯列主元消去法求线性方程组
2013-06-11 12:56 by java20130722, 495 阅读, 收藏,
摘要:
/*************************************
* 用高斯列主元消去法求线性方程组
* * 2*x1 + 2*x2 + 3*x3 = 3
*{4*x1 + 7*x2 + 7*x3 = 1
* -2*x1+ 4*x2 + 5*x3 = -7
*
**************************************/#include
#include
#include
#include #define N 3 int main() { static double a[N][N] = { { 2, 2, 3 }, { 4, 7, 7 }, { -2, 4... 阅读全文
浙公网安备 33010602011771号