3

デフォルトのデータベースを使用して、hadoop でハイブを正常に実行できました。次に、mysql (ポート 3306 にインストールされた mysql) を介してハイブに接続したいと考えています。

手順: 1) hive-site.xml を作成し、プロパティを貼り付けます

  <property>
  <name>hive.metastore.local</name>
  <value>true</value>
  </property>

  <property>
  <name>javax.jdo.option.ConnectionURL</name>  
  <value>jdbc:mysql://localhost:3306/hive?createDatabaseIfNotExist=true</value>
  </property>

  <property>
  <name>javax.jdo.option.ConnectionDriverName</name>
  <value>com.mysql.jdbc.Driver</value>
  </property>

  <property>
  <name>javax.jdo.option.ConnectionUserName</name>
  <value>hadoop</value>
  </property>

  <property>
  <name>javax.jdo.option.ConnectionPassword</name>
  <value>hadoop</value>
  </property>

2) コネクターをハイブ lib フォルダーに貼り付けます。

3)mysqlを使用してチェックしますが、ハイブウェアハウスにデータベースは作成されていません。

エラーはありませんが、まだデータベースが作成されていません。解決策があれば提案してください。

編集

ログファイルのエラー

ERROR DataNucleus.Plugin (Log4JLogger.java:error(115)) - Bundle "org.eclipse.jdt.core" requires "org.eclipse.core.resources" but it cannot be resolved.
ERROR DataNucleus.Plugin (Log4JLogger.java:error(115)) - Bundle "org.eclipse.jdt.core" requires "org.eclipse.core.resources" but it cannot be resolved.
ERROR DataNucleus.Plugin (Log4JLogger.java:error(115)) - Bundle "org.eclipse.jdt.core" requires "org.eclipse.core.runtime" but it cannot be resolved.
ERROR DataNucleus.Plugin (Log4JLogger.java:error(115)) - Bundle "org.eclipse.jdt.core" requires "org.eclipse.core.runtime" but it cannot be resolved.
ERROR DataNucleus.Plugin (Log4JLogger.java:error(115)) - Bundle "org.eclipse.jdt.core" requires "org.eclipse.text" but it cannot be resolved.
ERROR DataNucleus.Plugin (Log4JLogger.java:error(115)) - Bundle "org.eclipse.jdt.core" requires "org.eclipse.text" but it cannot be resolved.
4

1 に答える 1