hive没有提供hive --version这种方式查看版本好,所以要找到hive所在目录,然后查看jar包的版本号,比如:# ls /usr/local/hive/lib/
antlr-2.7.7.jar datanucleus-core-2.0.3.jar hive-jdbc-0.10.0.jar jline-1.0.ja...
分类:
其他好文 时间:
2014-06-24 23:20:21
阅读次数:
377
1.Could not find gem 'sqlite3 (>= 0)' in any of the gem sources listed in you
r Gemfile
2.ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /usr/local/lib/ruby/gems/1.9.1 director.y
3.rails 3遇到 Could n...
分类:
其他好文 时间:
2014-06-24 22:18:45
阅读次数:
316
最近写了一个小程序,打算做成deb发布,折腾了两天,终于找到了一个简单的deb制作方法
1、首先要编译好程序,获得程序的可执行文件
2、新建一个文件夹,例如在用户目录下新建mydeb文件夹
3、在mydeb文件夹建立如下结构的文件夹和文件
|——mydeb
|————usr
|————lib
|——可执行文件(安装后,...
分类:
其他好文 时间:
2014-06-24 21:39:35
阅读次数:
176
看到一篇博文写lambda和reduce函数,笔者小痒了一下,用Python实现一下:
#! /usr/bin/env python
# -*-coding:utf-8-*-
import time
import math
def test_reduce():
start_time = time.clock()
print reduce[A1] (lam...
分类:
编程语言 时间:
2014-06-24 20:37:10
阅读次数:
272
3.
删除启动项:
rm -rf /etc/oracle/*
5. 删除四个文件:
rm -rf /tmp/.oracle/
rm -rf /var/tmp/.oracle/
rm -rf /usr/tmp/.oracle/
rm -rf /var/opt/oracle/
6. 删除orc.loc : rm –rf /etc/oracle/orc.loc
7. 在Universal Installer删除 crs产品。
8. 删...
分类:
其他好文 时间:
2014-06-24 20:35:17
阅读次数:
331
heapq模块实现了python中的堆排序,并提供了有关方法。让用Python实现排序算法有了简单快捷的方式。
heapq的官方文档和源码:8.4.heapq-Heap queue algorithm
下面通过举例的方式说明heapq的应用方法
实现堆排序
#! /usr/bin/evn python
#coding:utf-8
from heapq import *
def ...
分类:
编程语言 时间:
2014-06-24 18:47:47
阅读次数:
403
环境:ubuntu lnmp
下载中文版本wordpress
cd /usr/local/nginx/html
wget http://cn.wordpress.org/wordpress-3.9-zh_CN.zip
unzip wordpress-3.9-zh_CN.zip '若未安装zip,先安装zip,apt-get install zip
在浏览器中安装
前提是已经建立好了数...
分类:
其他好文 时间:
2014-06-24 18:10:56
阅读次数:
177
安装 http://c-ares.haxx.se/
安装 http://concurrencykit.org/
\cp build/ck.pc /usr/lib64/pkgconfig/
$ ./autogen.sh
$ ./configure
$ make
$ make check
$ sudo make install
错误1:
修改cpplint.py, def...
分类:
其他好文 时间:
2014-06-24 17:34:43
阅读次数:
294
#!/usr/bin/envpython#Filename:helloworld.py#Theuseof‘and"print‘hello,world!‘print"hello,world!"#Theuseof‘‘‘and"""print‘‘‘Thisisamulti-linestring.Thisisthefirstline.Thisisthesecondline."What‘syourname?"Iasked.Hesaid"Bond,JamesBond."‘‘‘print"""Thisisamulti-li..
分类:
编程语言 时间:
2014-06-24 17:05:23
阅读次数:
239
make install 要su 切换用户权限. /configure --with-apr=/usr/local/aprbash: ./configure: 没有那个文件或目录--------------------------------------------------解决方案: chmod...
分类:
系统相关 时间:
2014-06-24 12:29:37
阅读次数:
291