链接:http://soj.me/show_problem.php?pid=1735&cid=
Description
Let me introduce an easy method of encryption to you.
Suppose there’re N bytes (1 byte = 8 bits) data that are to be encrypted and ...
分类:
其他好文 时间:
2014-05-09 22:46:01
阅读次数:
498
当hive在执行大数据量的统计查询语句时,经常会出现下面OOM错误,具体错误提示如下:
Possible error: Out of memory due to hash maps used in map-side aggregation.
Solution: Currently hive.map.aggr.hash.percentmemory is set to 0.5. Try set...
分类:
其他好文 时间:
2014-05-09 21:08:27
阅读次数:
366
Texlive的配置很简单,安装的时候跟着向导一步一步安装就可以了。
TexStudio也是同样的安装过程,没什么技巧。这里提一下界面颜色的配置。习惯了暗底白字,所以就google了一下相关的配置,大多给出的是颜色配置的代码。代码的使用也十分简单,先在TexStudio里面保存一下Current
S...
分类:
Windows程序 时间:
2014-05-09 19:46:13
阅读次数:
1165
use databases 显示所有数据库 use schame 使用数据库 show tables
显示当前数据库中的所有表 describe table 显示表结果 其他一些基本操作:例如更新,插入,查询,删除。
参考资料:http://wenku.baidu.com/link...
分类:
数据库 时间:
2014-05-09 19:20:41
阅读次数:
363
1、前提条件:
只需要选择一台服务器即可,这里选择安装在namenode上;安装用户为cloud-user2、安装包: sudo yum install -y hive
hive-metastore hive-server23、安装mysql: sudo yum install -y mysq...
分类:
其他好文 时间:
2014-05-09 15:38:16
阅读次数:
512
Example #1$GLOBALS范例以上例程的输出类似于:$foo in global
scope: Example content$foo in current scope: local variable
分类:
Web程序 时间:
2014-05-09 13:25:52
阅读次数:
309
NAMEls - list directory contents
列出文件夹内容SYNOPSIS ls [OPTION]... [FILE]...DESCRIPTION List information about the
FILEs (the current dir...
分类:
系统相关 时间:
2014-05-09 10:27:55
阅读次数:
617
由于hive也支持sql,很多人会把hql跟标准sql进行比较,甚至有的时候会直接套用。hive不支持事务也不支持索引,更不支持追加写,但是对于一般的sql都是能够支持的。但是对于一些子查询确实无法支持的,例如select
* from t_ext_1_bkdoubledelete where f1...
分类:
其他好文 时间:
2014-05-09 08:35:04
阅读次数:
295
1.COPY配置文件:cphive-default.xml.templatehive-site.xmlcphive-env.sh.templatehive-env.shcphive-exec-log4j.properties.templatehive-exec-log4j.propertiescphive-log4j.properties.templatehive-log4j.properties2.配置HADOOP主目录:vimhive-env.shHADOOP_HOME=/usr/a..
分类:
其他好文 时间:
2014-05-09 00:51:29
阅读次数:
282