Debug 是一个跟踪调试消息的 JavaScript 库。因为它只是对 console.log
的包装,所以支持 Node 和浏览器。它允许你过滤日志输出而不需要改变你的源代码,也输出时间差异,可以让您轻松地告诉你日志消息间隔多少时间。
分类:
其他好文 时间:
2014-05-16 19:16:32
阅读次数:
379
1. SELECT语句可以使用正则表达式做列选择,下面的语句查询除了ds和h
之外的所有列:SELECT `(ds|hr)?+.+` FROM sales2. LEFT SEMI JOIN的限制是,
JOIN子句中右边的表只能在ON子句中设置过滤条件,在WHERE子句、SELECT子句或其他地方过滤...
分类:
其他好文 时间:
2014-05-16 06:22:00
阅读次数:
283
创建表:
hive> CREATE TABLE pokes (foo INT, bar STRING);
Creates a table called pokes with two columns, the first being an integer and the other a string
创建一个新表,结构与其他一样
hive> create table n...
分类:
其他好文 时间:
2014-05-15 07:07:58
阅读次数:
303
Shark0.9.0错误如下:
Starting the Shark Command Line Client
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/hadoop/hive/cli/CliDriver : Unsupported major.minor version 51.0...
分类:
其他好文 时间:
2014-05-15 05:42:17
阅读次数:
375
1.我使用的Hadoop2.0-cdh4.3.0,对应hive配套版本hive-0.10.0-cdh4.3.0。
2.修改hive/conf下hive-site.xml文件,无则创建hive-site.xml,在底部添加如下内容:
[html] view
plaincopy
xml version="1.0" encoding="UTF-8"...
分类:
其他好文 时间:
2014-05-15 04:05:27
阅读次数:
341
hive执行query语句时提示错误:org.apache.hadoop.ipc.RemoteException: java.io.IOException: java.io.IOException:...
分类:
编程语言 时间:
2014-05-14 21:49:08
阅读次数:
378
一、 创建表
在官方的wiki里,example是这样的:
Sql代码
CREATE [EXTERNAL] TABLE [IF NOT EXISTS] table_name [(col_name data_type [COMMENT col_comment], ...)] [COMMENT table_comment] [PARTITION...
分类:
数据库 时间:
2014-05-14 14:50:27
阅读次数:
463
来源:https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDFComplex
Type ConstructorsThe following functions construct instances of complex ...
分类:
其他好文 时间:
2014-05-14 09:24:09
阅读次数:
500
虽然java的口号:Write Once, Run Anywhere ,但现实很残酷!不同的操作系统、不同的容器总是让我们:Write Once,Debug Anywhere。所以关键还是要看设计,好的设计能减少迁移成本。...
分类:
其他好文 时间:
2014-05-13 15:32:40
阅读次数:
327
正是发布django项目的时候,如果存在静态文件(一般会统一放在名称为media或static的目录下),则需要建立url到文件系统的映射,例如,使用nginx的时候我们需要进行这样的配置.
# Django media
location /media {
alias /home/lyndon/github/Mathematicia...
分类:
其他好文 时间:
2014-05-13 11:49:08
阅读次数:
437