下面是我的hive/conf/hive-site.xml:
<configuration>
<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:mysql://127.0.0.1/metastore?createDatabaseIfNotExist=true</value>
<description>metadata is stored in a MySQL server</desc
这是我们的设置-我们有一个配置单元,它使用另一台计算机上的MySQL作为中间存储。我可以启动Hive命令行shell并创建一个表并对其进行描述。但是,当我登录到另一台使用MySQL作为转储存储的计算机时,我无法在MySQL上看到配置单元表的详细信息。
例如,这里有hive命令-
hive> create table student(name STRING, id INT);
OK
Time taken: 7.464 seconds
hive> describe student;
OK
name string
id int
Time taken: 0.408 seco
我试图让我的外部mysql被用作Ambari的母公司转移点。以下是我遵循的步骤 - Started a HDInsight in Azure
- create a mysql database
- create a database 'metastore' and a user 'hive' in mysql
- source 'Ambari-DDL-AzureDB-CREATE.sql' to create schema in metastore db
- changed the mysql connection in hive config
我试图通过mysql数据库中的sqoop将数据加载到已存在的hive表中。我指的是以下指南,以供参考:-
--hive-import已经成功地进行了试验和测试。
我创建了一个蜂巢表如下:-
create table sqoophive (id int, name string, location string) row format delimited fields terminated by '\t' lines terminated by '\n' stored as textfile;
按要求加载数据。
我想使用--hive-overwrit
我使用的是Presto版本0.216,我想在一个目录文件中连接多个数据库。我正在使用Apache SuperSet通过presto运行查询,它迫使我转到一个名为hive.properties的目录。 我在AWS的一个Ubuntu实例上运行Presto。我可以访问所有数据库,并在多个目录文件(one.properties、hive.properties等)中定义的多个数据库上运行'join‘查询。然而,如上所述,这不是superset与presto集成的方式。 在presto文档中,它说我可以运行一个命令,通过连接器名称here对数据库进行分组。 SHOW SCHEMAS FROM m