【问题标题】:How do you reference/use custom JARs in an HDInsight Jupyter Notebook?如何在 HDInsight Jupyter Notebook 中引用/使用自定义 JAR?
【发布时间】:2017-12-13 16:53:12
【问题描述】:

如何在我的 HDInsight 集群上的 Jupyter 笔记本中使用自定义 JAR?

【问题讨论】:

    标签: apache-spark jupyter azure-hdinsight


    【解决方案1】:

    在 HDInsight 中运行的 Jupyter 会话的类路径(和其他设置)可通过对 %%configure 的单元魔术调用进行配置

    the Livy Session API 支持的任何设置都可以在这里设置。

    例如,如果您在集群默认存储的根目录中有一个名为 foo.jar 的 JAR,您可以像这样引用它以包含在内:

    %%configure -f
    {"jars": ["/foo.jar"]}
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-01-04
      • 2020-09-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多