Programming Impala Applications

Source: Internet
Author: User

Programming Impala Applications

The core development language with Impala is SQL. You can also use Java or other languages to interact with Impala through the standard JDBC and ODBC interfaces used by mans Y Business intelligence tools. For specialized kinds of analysis, you can supplement the SQL built-in functions by writing user-defined functions (UDFs) In C + + or Java.

Continue reading:

    • Overview of the Impala SQL dialect
    • Overview of Impala Programming Interfaces
Overview of the Impala SQL dialect

The Impala SQL dialect is descended from the SQL syntax used in the Apache Hive component (HiveQL). As such, it is familiar to the users of who be already familiar with running SQL queries on the Hadoop infrastructure. Currently, Impala SQL supports a subset of HiveQL statements, data types, and built-in functions.

For users coming to Impala from traditional database backgrounds, the following aspects of the SQL dialect might seem fami Liar or unusual:

  • impala SQL is focused on queries and includes relatively little DML. There is No update  or delete   Statement. Stale data is typically discarded (by drop TABLE  or ALTER TABLE ... DROP PARTITION  statements) or replaced (By insert OVERWRITE   statements).
  • All data loading INSERT are done by statements, which typically inserts data in bulk by querying from the other tables. There is variations, INSERT INTO which appends to the existing data, and which replaces the INSERT OVERWRITE entire contents of a tabl E or partition (similar to TRUNCATE TABLE followed by a new INSERT ). There is no INSERT ... VALUES syntax to insert a single row.
  • You often construct Impala table definitions and the data files in some other environment, and then attach Impala so that it C An run real-time queries. The same data files and table metadata is shared with other components of the Hadoop ecosystem.
  • because Hadoop and Impala is focused on data warehouse-style operations on large data sets, Impala SQL Inc Ludes some idioms that's might find in the import utilities for traditional database systems. For example, can create a table that reads comma-separated or tab-separated text files, specifying the separator in th Ecreate TABLE  statement. You can create external tables  that read existing data files but does not move or TR Ansform them.
  • Because Impala Reads large quantities of data that might not being perfectly tidy and predictable, it does not impose length Constraints on string data types. For example, you can define a database column STRING as with unlimited length, rather than CHAR(1) or VARCHAR(64) . Although in Impala 2.0 and later, you can also use length-constrained CHAR and VARCHAR types.)
  • For query-intensive applications, you'll find familiar notions such as joins, built-in functions for processing strings, Numbers, and dates, aggregate functions, subqueries, and comparison operators such as IN() and BETWEEN .
  • From the data warehousing world, you'll recognize the notion of partitioned tables.
  • In Impala 1.2 and higher, UDFs let you perform custom comparisons and transformation logic during SELECT and INSERT...SELECT Statemen Ts.

Related information: Impala SQL Language Reference, especially SQL statements and built-in Functions

Overview of Impala Programming Interfaces

You can connect and submit requests to the Impala daemons through:

    • The impala-shell Interactive command interpreter.
    • The Apache Hue web-based user interface.
    • Jdbc.
    • Odbc.

With these options, you can use the Impala in heterogeneous environments, with JDBC or ODBC applications running on Non-linux Platforms. You can also use Impala in combination with various business Intelligence tools, the use the JDBC and ODBC interfaces.

Each impalad daemon process, running on separate nodes in a cluster, listens to several ports for incoming requests. Requests from and impala-shell Hue is routed to the impalad daemons through the same port. The impalad daemons listen on separate ports for JDBC and ODBC requests.

Programming Impala Applications

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.