Skip to content

Issue while accessing GlueContext locally #59

@roshni0107

Description

@roshni0107

Hi,

To develop ETL Scripts locally with Python I have followed below steps :-

  1. Downloaded the AWS Glue Python library from GitHub. For Glue version 1.0, I checked out branch glue-1.0 as this version supports Python 3.
  2. Installed Apache Maven and referenced the path of Maven in the environment variables.
  3. Installed the Apache Spark and set the SPARK_HOME in environment variables
  4. Installed jdk and set the JAVA_HOME in environment variables
  5. Installed Hadoop and set HADOOP_HOME in environment variables
  6. Installed pyspark, awscli and boto3.

I chose the ETL script that was automatically generated by AWS glue and ran the job.
It worked successfully from AWS console and the file from source was loaded into the destination folder. But when I try to execute the same script locally, I encountered below error:

return self._jvm.GlueContext(self._jsc.sc())
TypeError: 'JavaPackage' object is not callable

Is there any workaround for this?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions