VS Code "Spark and Hive tools" extension failed to install Jupyter packages

Yan Xia 1 Reputation point
2021-12-22T16:14:02.867+00:00

Hello

I follow the tutorials to test interactive Spark session with Synapse Spark pool in VS Code.

https://learn.microsoft.com/en-us/azure/synapse-analytics/spark/vscode-tool-synapse

However, the "Spark and Hive Tool" extension was not able to install Jupyter package.

I have verified from that
(1) Python and Pip are installed properly.
(2) Virtualenv is installed
(3) A python environment "hdinsightJupyter" is created by under the folder .msvscode.hdinsight
(4) I can manually install Jupyter, SparkMagic and PySpark packages in the virtual environment. But the VSCode still reports Jupyter not being installed and tries to install it.
(5) I tried Python 3.7, 3.8 and 3.9. The failure is the same.

The installation failed with the error code "3221225477".

[2021-12-22T09:23:41.057] [INFO] hdiFileLogger - Jupyter not installed
[2021-12-22T09:23:41.058] [INFO] hdiFileLogger - Installing PySpark interactive virtual environment ...
[2021-12-22T09:23:41.058] [INFO] hdiFileLogger - Exec python, with args: -m,virtualenv,C:\Users\ralph.msvscode.hdinsight\hdinsightJupyter
[2021-12-22T09:23:42.111] [INFO] hdiFileLogger - created virtual environment CPython3.9.9.final.0-64 in 695ms
creator Venv(dest=C:\Users\ralph.msvscode.hdinsight\hdinsightJupyter, clear=False, no_vcs_ignore=False, global=False, describe=CPython3Windows)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=C:\Users\ralph\AppData\Local\pypa\virtualenv)
added seed packages: pip==21.3.1, setuptools==58.3.0, wheel==0.37.0
activators BashActivator,BatchActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

[2021-12-22T09:23:42.141] [INFO] hdiFileLogger - Exec C:\Users\ralph.msvscode.hdinsight\hdinsightJupyter\Scripts\pip.exe, with args: install,jupyter
[2021-12-22T09:23:42.569] [INFO] hdiFileLogger - Install Jupyter error:
[2021-12-22T09:23:42.569] [ERROR] hdiFileLogger - Exit with non zero 3221225477

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,378 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yan Xia 1 Reputation point
    2021-12-23T16:17:34.723+00:00

    Thanks a lot Pradeep.

    The problem is related to Synapse PySpark installation error.
    I followed the same steps on Mac, and it worked.
    The "Spark & Hive Tools" extension tried to install Jupyter in a specific virtual environment, hdinsightJupyter, and stuck there.

    There is no details about why the installation failed.

    Regards,


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.