hive between Bash 3.1 and 3.2
来源:互联网 发布:辐射4 ini优化 编辑:程序博客网 时间:2024/06/05 17:44
[hadoop@master hadoop]$ hive
/exapp/hive/hive-0.8.1/bin/hive: line 179: conditional binary operator expected
/exapp/hive/hive-0.8.1/bin/hive: line 179: syntax error near `=~'
/exapp/hive/hive-0.8.1/bin/hive: line 179: `if [[ "$HADOOP_VERSION" =~ $hadoop_version_re ]]; then'
自己查看代码
# between Bash 3.1 and 3.2
hadoop_version_re="^([[:digit:]]+)\.([[:digit:]]+)(\.([[:digit:]]+))?.*$"
if [[ "$HADOOP_VERSION" =~ $hadoop_version_re ]]; then.......
上面说的bash 版本 必须在3.1和3.2之间
查看下自己bash 版本
[hadoop@master hadoop]$ bash --version
GNU bash, version 2.05b.0(1)-release (i386-redhat-linux-gnu)
Copyright (C) 2002 Free Software Foundation, Inc.
貌似才2.05, 遂升级。
地址:http://ftp.gnu.org/gnu/bash/bash-3.1.tar.gz
下载后上传至服务器
[hadoop@master hadoop]$ ls
bash-3.1.tar.gz hive-0.8.1.tar.gz .....
权限不够切换用户:
[hadoop@master hadoop]$ su - root
[hadoop@master root]# mv bash-3.1.tar.gz /usr/local/src
[hadoop@master root]# cd /usr/local/src
[hadoop@master root]# tar zxvf bash-3.1.tar.gz
[hadoop@master root]# cd bash-3.1
[hadoop@master root]# ./configure
[hadoop@master root]# make
[hadoop@master root]# make install
重新登录用户,查看:
[hadoop@master hadoop]$ bash -version
GNU bash, version 3.1.0(1)-release (i686-pc-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.
[hadoop@master hadoop]$ hive
Logging initialized using configuration in file:/exapp/hive/hive-0.8.1/conf/hive-log4j.properties
Hive history file=/tmp/hadoop/hive_job_log_hadoop_201302050055_247239527.txt
hive>
进来了,搞定!
- hive between Bash 3.1 and 3.2
- bash与sh的区别【Difference between sh and bash】
- between...and
- between ..... and ..........
- between...and..
- The difference between (()) and ().
- Between Scylla and Charybdis
- difference between "<" and "<<"
- sql between and
- T-SQL between and
- between ..... and 用法
- mssql:between and 用法
- between。。and。。 操作符
- between and 时间查询
- SQL BETWEEN AND 用法
- SQL between and
- between and 函数
- oracle between and 边界问题
- 在虚拟机上安装 Oracle 11g RAC 过程中遇 SCAN Name 配置错误的处理办法
- MVC中 ViewData、ViewBag、TempData的区别与联系
- Android--AudioManager控制音量
- Oracle 11.2.0.3 RAC环境 ORA-29280 错误解决办法
- 安装ORACLE10g for sun solaris
- hive between Bash 3.1 and 3.2
- Android程序为什么没有退出设计?
- SQL优化方法
- TNS 12560 错误解决办法
- Android Logcat的使用
- RMAN 备份概念的理解
- 慎用delete expired 自动清理归档——obsolete 与expired 区别详解
- OSX:Apple严控Java太不人性化
- 一个串口程序引起的思考