Python on HDInsight

本文关键字:HDInsight on Python | 更新日期: 2023-09-27 17:49:40

我正在运行随机森林算法,在HDInsight上使用Python脚本。我用c#代码创建了一个自定义HDInsight集群。

为了运行脚本,我建立了一个到集群的远程桌面连接,并从命令行运行它。

我想从c#代码中运行python脚本,这样我就可以在完成后立即删除集群。

有人知道怎么做吗

Python on HDInsight

假设您的Random Forest算法作为MapReduce作业运行,您应该能够使用以下示例:http://azure.microsoft.com/en-us/documentation/articles/hdinsight-submit-hadoop-jobs-programmatically/#submit-hadoop-streaming-jobs-using-hdinsight-net-sdk提交一个流作业,该作业将您的Python代码调用为Mapper和Reducer。

如果不是这样,你能解释一下当你通过RDP在集群上本地启动代码时,它是如何启动的吗?