如何在带有Azure Hdinsight的Visual Studio中使用Pig

问题描述:

我在Azure上创建了我的HDInsight并与VS2017上的云资源管理器连接。如何在带有Azure Hdinsight的Visual Studio中使用Pig

我想用Hdinsight猪做一个字计数器。

我创造了我的猪项目,但,当我开始我的script.pig我得到一个错误:

Could not copy the file "obj\Debug\Pig" because it was not found. 

您可以使用数据湖工具Visual Studio支持创建和提交猪脚本HDInsight集群。用户可以从模板创建Pig项目,然后将脚本提交给HDInsight群集。

创建脚本后,如果你点击启动按钮,你将收到此错误信息:

无法复制文件“OBJ \调试\猪”,因为它没有被发现。

enter image description here

您需要提交猪脚本已创建的HDInsight集群。

enter image description here

成功提交猪脚本到HDInsight集群:

enter image description here