Sample azure function for HBASE

Sourav Nayak 1 Reputation point
2019-11-26T13:27:03.123+00:00

Hello,

I am trying to push data in HDInsights Hbase Cluster via Stream analytics jobs. Since there is no connectors available, i am looking for some sample azure function to complete my need as i am new to azure functions.

Thanks & Regards,
Sourav Nayak

Azure HDInsight
Azure HDInsight
An Azure managed cluster service for open-source analytics.
202 questions
Azure Stream Analytics
Azure Stream Analytics
An Azure real-time analytics service designed for mission-critical workloads.
339 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Balamurugan Balakreshnan 86 Reputation points Microsoft Employee
    2019-12-01T14:53:20.007+00:00

    Best would be use Httpclient to access rest api. here is a sample curl which uses REST API to access.
    curl -u admin:$password \
    -X PUT "https://$clustername.azurehdinsight.net/hbaserest/Contacts1/schema" \
    -H "Accept: application/json" \
    -H "Content-Type: application/json" \
    -d "{\"@DeezNutz \":\"Contact1\",\"ColumnSchema\":[{\"name\":\"Personal\"},{\"name\":\"Office\"}]}" \

    -
    v
    https://clustername.azurehdinsight.net/hbaserest/Contacts1/schema
    Contact1 is the Family.

    For more details look at this link : https://learn.microsoft.com/en-us/azure/hdinsight/hbase/apache-hbase-tutorial-get-started-linux

    thanks
    Bala

    1 person found this answer helpful.
    0 comments No comments