You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,17 +22,17 @@ Following picture illustrates how ApacheSpark can be used as SQL-on-Hadoop frame
22
22
-**src/test/java/TestThriftClient.java:** Java class to demo how to connect to thrift server as JDBC source and query the registered data
23
23
24
24
## 4. How to run this project?
25
-
This project does 2 things:
26
-
4.1. Demo how to register data with SparkSql
27
-
4.2. Demo how to query registered data via Spark ThriftServer - using **Beeline** and **JDBC**
25
+
This project does demo 2 things:
26
+
-4.1. How to register data with SparkSql
27
+
-4.2. How to query registered data via Spark ThriftServer - using **Beeline** and **JDBC**
28
28
29
-
### 4.1 Demo how to register data with SparkSql
29
+
### 4.1 How to register data with SparkSql
30
30
- Download this project.
31
31
- Build it: `mvn clean install` and
32
32
- Run MainApp: `spark-submit MainApp cloud-based-sql-engine-using-spark.jar`. Tht's it!
33
33
- It'll register some sample data in `records` table with SparkSQL.
34
34
35
-
### 4.2 Demo how to query registered data via Spark Thrift Server using Beeline and JDBC?
35
+
### 4.2 How to query registered data via Spark Thrift Server using Beeline and JDBC?
36
36
For this, first connect to Spark ThriftServer. Once the connection is established, just like HiveServer2, access Hive or Spark temp tables to run the sql queries on ApacheSpark framework. I'll show 2 ways to do this:
37
37
38
38
1.**Beeline:** Perhaps, the simplest is to use beeline command-line tool provided in Spark's bin folder.
0 commit comments