When working with Power BI, connecting to data sources is a critical step. One data source that is becoming increasingly popular is Hive LLAP. Hive LLAP is a data warehouse technology that allows for querying of large datasets stored in the Hadoop Distributed File System (HDFS). In this article, we will explore how to connect to the Hive LLAP data source using Power Query M Language code from inside Power BI.
Prerequisites
Before we begin, there are a few prerequisites that need to be in place:
– Power BI Desktop must be installed on your machine.
– The Hive LLAP data source must be accessible from your machine.
– The required ODBC driver for Hive LLAP must be installed on your machine.
If any of these prerequisites are not met, please ensure they are in place before proceeding.
Creating the Connection
To create a connection to the Hive LLAP data source, we will first need to open Power BI Desktop. From the Home screen, select the “Get Data” option in the ribbon. In the “Get Data” window, select “ODBC” from the list of available connections.

In the “ODBC” window, select the “Advanced” option. In the “Advanced Options” window, we will need to enter the connection string for the Hive LLAP data source. The connection string will look something like this:
Driver={ODBC Driver for Apache Hive};Host=;Port=;Schema=;UID=;PWD=;
Replace `` with the hostname or IP address of your Hive LLAP server, `` with the port number for the Hive LLAP server (default is usually 10000), `` with the Hive database name, `` with the username for connecting to the Hive LLAP data source, and `` with the corresponding password.
Once the connection string has been entered, select “Connect” to create the connection to the Hive LLAP data source.

Querying the Data
Now that we have created the connection to the Hive LLAP data source, we can begin querying the data. To do this, we will need to add a new query to our Power BI report. From the Home screen, select the “New Source” option in the ribbon. In the “New Source” window, select “Blank Query”.

In the “New Query” window, select the “Advanced Editor” option. In the “Advanced Editor” window, we can begin writing our Power Query M Language code to query the data. Here is an example of Power Query M Language code for connecting to the Hive LLAP data source:
let
Source = Odbc.DataSource(“dsn=“),
Query = “SELECT FROM
“,
Results = Odbc.Query(Source, Query)
in
Results
Replace `` with the name of the ODBC data source name configured on your machine and `
` with the name of the table you wish to query.
Once the Power Query M Language code has been entered, select “Done” to create the query. From here, you can manipulate the data as needed using Power Query transformations.
Conclusion
Connecting to the Hive LLAP data source from inside Power BI is a powerful capability that allows for querying of large datasets stored in the Hadoop Distributed File System. With the Power Query M Language code provided in this article, you can easily create a connection to the Hive LLAP data source and begin querying the data.
Power BI Training Courses by G Com Solutions (0800 998 9248)
Power BI enables business users to interact with corporate information and to extract the reports and intel they need. Power BI allows users to access reports and dashboards using familiar tools and devices. Self-service BI has never been so user-friendly! If you are looking to learn Power BI, then our series of Power BI…
Power BI is an extremely powerful tool that allows users to create stunning visuals and reports with ease. One of the key features of Power BI is the ability to connect to multiple data sources, including Azure DevOps, a cloud-based service for managing software development projects.
In today’s data-driven world, organizations rely on insights derived from data to make informed decisions. Power BI, a popular business intelligence tool developed by Microsoft, empowers users to transform raw data into meaningful visualizations and reports. One of the key features that makes Power BI a powerful tool is the ability to create calculated columns. In this article, we will explore the concept of calculated columns in Power BI and unlock their potential for data analysis.
Power BI is an incredibly powerful tool for data visualization and analysis. One of the key features that makes Power BI so powerful is its ability to connect to a wide variety of data sources. In this article, we’ll focus on connecting to Zendesk, a popular customer support platform. Specifically, we’ll explore how to use Power Query M Language code to connect to Zendesk from inside Power BI.
In today’s data-driven business landscape, organizations rely on comprehensive and visually appealing data dashboards to gain actionable insights and make informed decisions. These dashboards provide a bird’s-eye view of key performance indicators (KPIs) and enable stakeholders to monitor business performance, identify trends, and uncover opportunities. One powerful tool for creating compelling data visualizations is Microsoft Power BI, a leading business intelligence platform.
In today’s data-driven world, Power BI has become an essential tool for businesses and professionals to gain insights from their data. One of the key aspects of Power BI is the ability to collaborate and share reports through groups. Group rankings play a vital role in determining the visibility and success of your reports within the Power BI community. In this article, we will uncover the secret strategies that can help you rise to the top in group rankings with Power BI.