You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/hdinsight/interactive-query/apache-hive-migrate-workloads.md
+42-42Lines changed: 42 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,56 +34,56 @@ Create a new copy of your external metastore. If you're using an external metast
34
34
35
35
If you're using the internal metastore, you can use queries to export object definitions in the Hive metastore, and import them into a new database.
36
36
37
-
Note: For ACID tables, a new copy of the data will be created. Once this script is complete, it is assumed that the old cluster will not longer be used for accessing the data/metadata referred to in the script.
37
+
Note: For ACID tables, a new copy of the data will be created. Once this script is complete, it is assumed that the old cluster will no longer be used for accessing the data/metadata referred to in the script.
38
38
39
39
1. Connect to the HDInsight cluster by using a [Secure Shell (SSH) client](../hdinsight-hadoop-linux-use-ssh-unix.md).
40
40
41
41
1. Connect to HiveServer2 with your [Beeline client](../hadoop/apache-hadoop-use-hive-beeline.md) from your open SSH session by entering the following command:
42
42
43
43
```hiveql
44
-
for d in `beeline -u "jdbc:hive2://localhost:10001/;transportMode=http" --showHeader=false --silent=true --outputformat=tsv2 -e "show databases;"`;
45
-
do
46
-
echo "Scanning Database: $d"
47
-
echo "create database if not exists $d; use $d;" >> alltables.hql;
48
-
for t in `beeline -u "jdbc:hive2://localhost:10001/$d;transportMode=http" --showHeader=false --silent=true --outputformat=tsv2 -e "show tables;"`;
44
+
for d in `beeline -u "jdbc:hive2://localhost:10001/;transportMode=http" --showHeader=false --silent=true --outputformat=tsv2 -e "show databases;"`;
0 commit comments