Skip to content

Commit

Permalink
[MINOR][DOCS] Fixes two problems in the SQL programing guide page
Browse files Browse the repository at this point in the history
## What changes were proposed in this pull request?

Removed duplicated lines in sql python example and found a typo.

## How was this patch tested?

Searched for other typo's in the page to minimize PR's.

Author: Boaz Mohar <boazmohar@gmail.com>

Closes #17066 from boazmohar/doc-fix.
  • Loading branch information
boazmohar authored and gatorsmile committed Feb 25, 2017
1 parent 8f0511e commit 061bcfb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion docs/sql-programming-guide.md
Expand Up @@ -1410,7 +1410,7 @@ Thrift JDBC server also supports sending thrift RPC messages over HTTP transport
Use the following setting to enable HTTP mode as system property or in `hive-site.xml` file in `conf/`:

hive.server2.transport.mode - Set this to value: http
hive.server2.thrift.http.port - HTTP port number fo listen on; default is 10001
hive.server2.thrift.http.port - HTTP port number to listen on; default is 10001
hive.server2.http.endpoint - HTTP endpoint; default is cliservice

To test, use beeline to connect to the JDBC/ODBC server in http mode with:
Expand Down
3 changes: 0 additions & 3 deletions examples/src/main/python/sql/basic.py
Expand Up @@ -187,9 +187,6 @@ def programmatic_schema_example(spark):
# Creates a temporary view using the DataFrame
schemaPeople.createOrReplaceTempView("people")

# Creates a temporary view using the DataFrame
schemaPeople.createOrReplaceTempView("people")

# SQL can be run over DataFrames that have been registered as a table.
results = spark.sql("SELECT name FROM people")

Expand Down

0 comments on commit 061bcfb

Please sign in to comment.