Articles

What is thrift port?

What is thrift port?

Thrift is an interface definition language and binary communication protocol used for defining and creating services for numerous programming languages. It forms a remote procedure call (RPC) framework and was developed at Facebook for “scalable cross-language services development”.

What is the server used for thrift server?

Thrift JDBC/ODBC Server (aka Spark Thrift Server or STS) is Spark SQL’s port of Apache Hive’s HiveServer2 that allows JDBC/ODBC clients to execute SQL queries over JDBC and ODBC protocols on Apache Spark.

What is Thrift server in Hive?

HiveServer is an optional service that allows a remote client to submit requests to Hive, using a variety of programming languages, and retrieve results.

What is the port for the Hive?

10000
​Hive Service Ports

Service Servers Default Ports Used
Hive Server Hive Server machine (Usually a utility machine) 10000
Hive Web UI Hive Server machine (Usually a utility machine) 9999
Hive Metastore 9083

Which is the default spark thrift server port?

The default Spark Thrift server port is 10015 (for Spark2 10016). To specify a different port, you can navigate to the hive.server2.thrift.port setting in the “Advanced spark-hive-site-override” category of the Spark configuration section and update the setting with your preferred port number.

How is a thrift file used in a server?

This file is an interface definition made up of thrift types and Services. The services you define in this file are implemented by the server and are called by any clients. The Thrift compiler is used to generate your Thrift File into source code which is used by the different client libraries and the server you write.

Where can I find the documentation for thrift?

Thrift documentation is available at http://thrift.apache.org/docs/. This document describes how to set up the server. How to use a client with this server is described in the HiveServer2 Clients document.

Where can I find the thrift JDBC server?

Table 1. SQuirreL SQL Client’s Connection Parameters Parameter Description Name Spark Thrift Server Example URL jdbc:hive2://localhost:10000 Extra Class Path All the jar files of your Spark distribu Class Name org.apache.hive.jdbc.HiveDriver