Apache I';m使用Hadoop 2.7.2安装Hive 2.0.0

Apache I';m使用Hadoop 2.7.2安装Hive 2.0.0,apache,hadoop,hive,apache-hive,Apache,Hadoop,Hive,Apache Hive,我正在尝试用Hadoop 2.7.2安装Hive2.0.0 但我不知道我的死刑有什么问题 parallels@ubuntu:/usr/local/apache-hive-2.0.0-bin$ ./bin/hive SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/usr/local/apache-hive-2.0.0-bin/lib/hive-jdbc-2.0.0-stan

我正在尝试用Hadoop 2.7.2安装Hive2.0.0

但我不知道我的死刑有什么问题

parallels@ubuntu:/usr/local/apache-hive-2.0.0-bin$ ./bin/hive
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/apache-hive-2.0.0-bin/lib/hive-jdbc-2.0.0-standalone.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/apache-hive-2.0.0-bin/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]

Logging initialized using configuration in jar:file:/usr/local/apache-hive-2.0.0-bin/lib/hive-common-2.0.0.jar!/hive-log4j2.properties
Fri Oct 14 05:07:53 PDT 2016 Thread[main,5,main] java.io.FileNotFoundException: derby.log (Permission denied)
----------------------------------------------------------------
Fri Oct 14 05:07:53 PDT 2016:
Booting Derby (version The Apache Software Foundation - Apache Derby - 10.10.2.0 - (1582446)) instance a816c00e-0157-c317-6794-00000215e210 
on database directory /usr/local/apache-hive-2.0.0-bin/metastore_db in READ ONLY mode with class loader sun.misc.Launcher$AppClassLoader@311d617d. 
Loaded from file:/usr/local/apache-hive-2.0.0-bin/lib/derby-10.10.2.0.jar.
java.vendor=Oracle Corporation
java.runtime.version=1.8.0_101-b13
user.dir=/usr/local/apache-hive-2.0.0-bin
os.name=Linux
os.arch=amd64
os.version=3.13.0-32-generic
derby.system.home=null
Database Class Loader started - derby.database.classpath=''
然后没有反应

有什么问题吗

我已经执行了./bin/schematool-initSchema-dbtypederby命令

我正在运行hadoop(./start.dfs.sh),hadoop中没有问题


如何修复它???

我也遇到了同样的问题,当我删除了
Hadoop
HIVE
之间的绑定时,问题得到了解决

  • /usr/local/apache-hive-2.0.0-bin/lib/hive-jdbc-2.0.0-standalone.jar
  • /usr/local/apache-hive-2.0.0-bin/lib/log4j-slf4j-impl-2.4.1.jar
似乎不允许您创建和写入derby.log。您可以尝试以root用户身份运行配置单元,以检查是否存在这种情况

java.io.FileNotFoundException: derby.log (Permission denied)