title: Connecting Pyspark to Hive
body: <p>I have a question about connecting Hive and Pyspark. I am using Mac by the way.
  I have some data saved into Hive. I want to get the data from Hive by Pyspark and use it to run some queries.
  Before, I simply got the data from the hive to Pycharm by making connections using Pyhive.</p>
  <p>ex) conn = hive.Connection(host='101.50.123', port = 10000, username='abc123', password='***', database='dataset_1')</p>
  <p>However, when I was trying to use pyspark to get the hive data, I was not sure which function to use. I have done some research, there were some functions such as enableHiveSupport() or spark.sql.warehouse.dir, but</p>
  <p>Question is, where do I put my host, username, password, database in order to connect Pyspark to Hive? I have already tried to set the path of Hive, Haddop, Java, Spark ... but did not work either. I am completely new to pyspark that's why I am so confused. Thanks in advance.</p>