Comments (4)
Yes, should be possible w/ this option:
--cluster-name CLUSTER_NAME
Cluster name to export the metastore to a specific
cluster. Cluster will be started.
Have you tried this option?
from db-migration.
No this did not fix it, sorry. I see that the cluster started but then I get an error.
Is this because it is spark 3.0?
ERROR:
AttributeError: databaseName
{"resultType": "error", "summary": "AttributeError: databaseName", "cause": "---------------------------------------------------------------------------\nValueError Traceback (most recent call last)\n/databricks/spark/python/pyspark/sql/types.py in getattr(self, item)\n 1594 # but this will not be used in normal cases\n-> 1595 idx = self.fields.index(item)\n 1596 return self[idx]\n\nValueError: 'databaseName' is not in list\n\nDuring handling of the above exception, another exception occurred:\n\nAttributeError Traceback (most recent call last)\n in \n----> 1 all_dbs = [x.databaseName for x in spark.sql("show databases").collect()]; print(len(all_dbs))\n\n in (.0)\n----> 1 all_dbs = [x.databaseName for x in spark.sql("show databases").collect()]; print(len(all_dbs))\n\n/databricks/spark/python/pyspark/sql/types.py in getattr(self, item)\n 1598 raise AttributeError(item)\n 1599 except ValueError:\n-> 1600 raise AttributeError(item)\n 1601 \n 1602 def setattr(self, key, value):\n\nAttributeError: databaseName"}
Traceback (most recent call last):
File "./export_db.py", line 151, in
main()
File "./export_db.py", line 137, in main
hive_c.export_hive_metastore(cluster_name=args.cluster_name)
File "/Users/saldroubi/Dropbox/git/db-migration/dbclient/HiveClient.py", line 200, in export_hive_metastore
all_dbs = self.log_all_databases(cid, ec_id, metastore_dir)
File "/Users/saldroubi/Dropbox/git/db-migration/dbclient/HiveClient.py", line 21, in log_all_databases
raise ValueError("Cannot identify number of databases due to the above error")
ValueError: Cannot identify number of databases due to the above error
from db-migration.
I just confirmed that it does NOT work with runtime version: 7.0 (includes Apache Spark 3.0.0, Scala 2.12)
But it works for runtime: 6.5 (includes Apache Spark 2.4.5, Scala 2.11)
from db-migration.
I am closing this issue and reopening another more clear and concise about the problem.
from db-migration.
Related Issues (20)
- DDL extraction issue with control characters HOT 2
- Add support for different file types for notebooks
- Fix ACLs for User Migrations with Case Sensitivity Changes
- --reset-exports arg defaults to true HOT 1
- add support for managed table data migration options. HOT 1
- add documentation on data migration options HOT 1
- Import users without notifications? HOT 2
- Add Secrets Export
- Add Secrets Import
- delta and external tables in metastore import fails HOT 10
- user import in azure fails with key error. HOT 4
- databases migrated failed to inherit path / location from source workspace HOT 2
- Add support for custom database locations for single database exports
- Apply Table Views After Raw Tables During Metastore Import
- Import Users into the specific groups already available from the export user-group lists HOT 2
- Add Export analysis for metastore partitioned tables
- Duplication of databricks jobs HOT 7
- Deleted Clusters requiring cluster id to exist before being imported again HOT 3
- CSV Custom Delimiters Error
- Tables are blank/empty after migration HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from db-migration.