aws / aws/sagemaker-spark

The notebook cannot find the dependencies I installed in EMR

Open
#138 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Scala
Stars
301
Forks
129
PR merge metrics
No merged PRs in 30d

Description

Please fill out the form below.

### System Information
- **Spark or PySpark**: Spark
- **SDK Version**:
- **Spark Version**:
- **Algorithm (e.g. KMeans)**:

### Describe the problem
Describe the problem or feature request clearly here.
I created a sparkmagic notebook in SageMaker. And connected it with my EMR following this guide.
https://aws.amazon.com/blogs/machine-learning/build-amazon-sagemaker-notebooks-backed-by-spark-in-amazon-emr/
And then I installed all the jars for my spark in EMR. And I want to import related packages in my notebook, but it did not work. How can I import them to my notebook? Any configuration need?

### Minimal repo / logs
Please provide any logs and a bare minimum reproducible test case, as this will be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
Logs showed: stderr:
Exception in thread "main" java.io.FileNotFoundException: File hdfs://ip-10-0-1-105.ec2.internal:8020/mnt/jars/NLPLanguageDetection-1.8-super.jar does not exist.
Here ip-10-0-1-105.ec2.internal is my cluster's IP.

- **Exact command to reproduce**:

Contributor guide

Open the contributing guide

Research direction

The report names a SageMaker sparkmagic notebook connected to EMR and includes the AWS setup guide plus a FileNotFoundException for hdfs://ip-10-0-1-105.ec2.internal:8020/mnt/jars/NLPLanguageDetection-1.8-super.jar. Start by reproducing that setup and checking how the EMR jar path is exposed to the notebook. Done means the notebook can import the installed dependency, with the required configuration documented and the missing-file error resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.