aws-samples / aws-glue-samples

AWS Glue code samples
MIT No Attribution
1.44k stars 820 forks source link

Unable to Create GlueContext via GlueContext Function in Local Python/awsglue Environment #69

Closed adamfortuno closed 4 years ago

adamfortuno commented 4 years ago

I'm having the issue described in issue #42.

I am attempting to run the following in my local PySpark console...

from awsglue.context import GlueContext
glueContext = GlueContext(sc)

We receive the following:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\XYZ\bin\aws-glue-libs\PyGlue.zip\awsglue\context.py", line 47, in __init__
  File "C:\Users\XYZ\bin\aws-glue-libs\PyGlue.zip\awsglue\context.py", line 68, in _get_glue_scala_context
TypeError: 'JavaPackage' object is not callable

The following is the complete picture: image

The environment looks like the following:

My environment variables look like the following...

Just to confirm which version awsglue repo I'm working with...

image

The following are the "netty" files in my ..\aws-glue-libs\jarsv1\:

image

I'm looking for a little guidance on how to tweak my configuration to resolve this issue.

adamfortuno commented 4 years ago

Moved this issue to the awslabs/aws-glue-libs project; issue #58.