Git Product home page Git Product logo

Comments (6)

kjudahlookout avatar kjudahlookout commented on July 3, 2024

Please let me know what more info I can provide to debug this issue. Thanks

from aws-glue-samples.

dichenli avatar dichenli commented on July 3, 2024

Hi Kshitij,

Thank you for using the Glue service. Here are some of my suggestions:

  1. Try to run Hive Metastore -> S3 migration as well, see if any data is generated in the S3 bucket. This helps to narrow down the search space for the error.
  2. The script hive_metastore_migration.py can migrate your Hive metastore to S3 or a local file system. It is completely open source Spark 2.1 code, you can run the script on your own Spark cluster or a local Spark installation on your laptop, as long as it's connectable to your Hive metastore. Debug locally using this script might be helpful.
  3. If you are familiar with Spark programming or Python, you may manually add "print()" debugging statement in the script, then run the script on Glue. It will print to the job output logs in CloudWatch.
  4. Double check if the data is showing up on Glue console. If it shows up on Glue console but not Athena console, you may need to migrate your Athena catalog to Glue: http://docs.aws.amazon.com/athena/latest/ug/glue-upgrade.html
  5. In your use case, if you are looking for a solution to sync from Hive metastore to Glue DataCatalog in near-realtime, you may consider calling Glue DataCatalog APIs directly on a stream processing workflow. You may find Glue DataCatalog APIs documentation here: http://docs.aws.amazon.com/glue/latest/dg/aws-glue-api.html.

from aws-glue-samples.

kjudahlookout avatar kjudahlookout commented on July 3, 2024

Hello,
Thank you very much for your reply and sorry about the late reply. I was able add some print statements to these Python scripts, run them in Glue and able to see dataframes that is being processed by these scripts. As far as I can see, i didnt see any issue with the dataframes themselves, i was able to print their count and first 10 rows of dataframes for databases and tables and I can see all the data even after the step in which Spark dataframes get converted to Glue's dynamic frames.

However, the last step of loading the dynamic frames into glue catalog seems to be (silently) failing for me. Despite printing all data successfully in logs, the data is not getting loaded into glue by glue APIs.

I am wondering if this is something to do with my old version of hive metastore. My hive metastore version is 1.1.0 which is almost 3 years old. Is it possible that these scripts may have been developed and tested with newer versions of Hive metastore, and may not support old versions such as 1.1.0 as in my case? Pls let me know.

Thanks,
Kshitij

from aws-glue-samples.

dichenli avatar dichenli commented on July 3, 2024

from aws-glue-samples.

dichenli avatar dichenli commented on July 3, 2024

from aws-glue-samples.

kjudahlookout avatar kjudahlookout commented on July 3, 2024

This issue seems to have been resolved for me with using --region option in the migration scripts. Thanks Dichen Li for the help.

from aws-glue-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.