question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error in Setting up Hive and Oozie Metastore using _hdiManagementClient.Clusters.Create method

See original GitHub issue

When you pass in Hive and Oozie Metastore information to ClusterCreateParamters objects it always complain about not able to connect to the Azure SQL Server. I have verified the SQL Server credentials and the flag on the server to allow access to Azure services. I am able to create HdInsight server attaching it to Azure Sql Server for metastor using portal but not using the Azure SDK.

Are we storing the connection string for the hive configs in the Ambari Server log table.

        var parameters = new ClusterCreateParameters
        {
            ClusterSizeInNodes = NewClusterNumNodes,
            Location = NewClusterLocation,
            ClusterType = NewClusterType,
            OSType = NewClusterOSType,
            Version = NewClusterVersion,

            DefaultStorageAccountName = ExistingStorageName,
            DefaultStorageAccountKey = ExistingStorageKey,
            DefaultStorageContainer = ExistingContainer,

            UserName = NewClusterUsername,
            Password = NewClusterPassword,
            SshUserName = SSHUserName,
            SshPassword = SSHPassword,

            HiveMetastore = new Metastore(AzureSqlServerName, "hive", AzureSqlUserName, AzureSqlPassword),
            OozieMetastore = new Metastore(AzureSqlServerName, "oozie", AzureSqlUserName, AzureSqlPassword)
        };

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
amadavcommented, Nov 7, 2017

Got it working. I was trying with the same deployment name and the cluster name for multiple times and changing those worked. I am guessing there is some king of caching for the deployments which couldn’t reflect the latest state.

0reactions
Bizz247commented, Sep 28, 2019

Yeah so I found out this issue for me was caused by not having the right encoding on the JSON file that’s being uploaded. PowerShell uses ucs-2 by default when doing an out-file… if you choose utf8 on -encoding in PowerShell v5.1 it will actually encode to utf8bom which also no good.

PowerShell 6 has a “new” encoding that’s called utf8nobom which will ACTUALLY out-file to regular utf-8… when in doubt validate with notepad++ !!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Oozie/hive-server2 not able to connect to hive-metastore ...
It looks like oozie is not able to connect to the hive metastore using its hive client. When I start the hive-server2 and...
Read more >
Hive installation issues: Hive metastore database is not ...
After installing hive, if the first thing you did was run hive, hive attempted to create/initialize the metastore_db, but apparently might ...
Read more >
Oozie Spark Access to Hive with Kerberos
This blog post will guide you through the process of setting up Oozie Spark to access Hive with Kerberos, ensuring your data remains...
Read more >
Oozie workflow credentials with a Hive action with Kerberos
Here is a demo, with a kerberized cluster and a MySql Hive metastore showing how it works. We create a Hive script that...
Read more >
Apache Oozie workflows & Enterprise Security - Azure ...
In this article · Prerequisite · Connect to an ESP cluster · Define the workflow · Define the properties file for the Oozie...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found