Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/kotlin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 使用.NET将查询发送到Azure HDInsight Spark群集_C#_.net_Azure_Azure Hdinsight - Fatal编程技术网

C# 使用.NET将查询发送到Azure HDInsight Spark群集

C# 使用.NET将查询发送到Azure HDInsight Spark群集,c#,.net,azure,azure-hdinsight,C#,.net,Azure,Azure Hdinsight,我有一个Azure spark群集,我想使用与Excel集成的.NET类库将超级基本查询发送到该群集 我已经看过Azure文档中的示例,但是我不知道参数列表中应该包含什么,当我调用SubmitHiveJob时只定义了“查询”和“定义”,函数似乎就卡住了?下面详述的文档示例: HDInsightJobManagementClient managementClient = new HDInsightJobManagementClient(clusterUri, credentials); Dict

我有一个Azure spark群集,我想使用与Excel集成的.NET类库将超级基本查询发送到该群集

我已经看过Azure文档中的示例,但是我不知道参数列表中应该包含什么,当我调用SubmitHiveJob时只定义了“查询”和“定义”,函数似乎就卡住了?下面详述的文档示例:

HDInsightJobManagementClient managementClient = new HDInsightJobManagementClient(clusterUri, credentials);

Dictionary<string, string> defines = new Dictionary<string, string> {
    { "hive.execution.engine", "tez" },
    { "hive.exec.reducers.max", "1" }
};
List<string> arguments = new List<string> { { "argA" }, { "argB" } };
HiveJobSubmissionParameters parameters = new HiveJobSubmissionParameters
{
    Query = "SHOW TABLES",
    Defines = defines,
    Arguments = arguments
};

JobSubmissionResponse jobResponse = managementClient.JobManagement.SubmitHiveJob(parameters);
HDInsightJobManagementClient管理客户端=新的HDInsightJobManagementClient(clusterUri,凭据);
字典定义=新字典{
{“hive.execution.engine”,“tez”},
{“hive.exec.reducers.max”,“1”}
};
列表参数=新列表{{“argA”}、{“argB”};
HiveJobSubmissionParameters=新的HiveJobSubmissionParameters
{
Query=“SHOW TABLES”,
定义,
参数=参数
};
JobSubmitionResponse jobResponse=managementClient.JobManagement.SubmitHiveJob(参数);
以上是对的,还是我找错了方向