hiveserver
./hive --service start-hive
./hive --service stop-hive
hive的metastore使用了datanucleus
下载datanucleus-samples-jdo-tutorial-2.0-src.zip
解压datanucleus-samples-jdo-tutorial-2.0,把里面的lib目录,src目录,datanucleus.properties log4j.properties orm.xml都拷到另外一个目录下面
创建 target/classes文件。
修改datanucleus.properties文件为:
javax.jdo.PersistenceManagerFactoryClass=org.datanucleus.jdo.JDOPersistenceManagerFactory
javax.jdo.option.ConnectionDriverName=com.mysql.jdbc.Driver
javax.jdo.option.ConnectionURL=jdbc:mysql://localhost:3306/hive?createDatabaseIfNotExist=true
javax.jdo.option.ConnectionUserName=hive
javax.jdo.option.ConnectionPassword=123456
javax.jdo.option.Mapping=hsql
datanucleus.metadata.validate=false
datanucleus.autoCreateSchema=true
datanucleus.validateTa