Last active
May 18, 2017 11:13
-
-
Save gbraccialli/f2be1656618b4990012ef70cbd3ba8b6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install mysql-connector-java mysql-server | |
mysql -u root | |
create database metastore; | |
CREATE USER 'metastore'@'%' IDENTIFIED BY 'metastore'; | |
CREATE USER 'metastore'@'localhost' IDENTIFIED BY 'metastore'; | |
GRANT ALL PRIVILEGES ON metastore.* TO 'metastore'@'%'; | |
GRANT ALL PRIVILEGES ON metastore.* TO 'metastore'@'localhost'; | |
spark-defaults.conf | |
spark.driver.extraClassPath /usr/share/java/mysql-connector-java.jar | |
spark.executor.extraClassPath /usr/share/java/mysql-connector-java.jar | |
spark.history.fs.logDirectory file:///home/centos/spark-events | |
spark.eventLog.enabled true | |
spark.eventLog.dir file:///home/centos/spark-events | |
hive-site.xml | |
<configuration> | |
<property> | |
<name>javax.jdo.option.ConnectionURL</name> | |
<value>jdbc:mysql://localhost/metastore</value> | |
<description>the URL of the MySQL database</description> | |
</property> | |
<property> | |
<name>javax.jdo.option.ConnectionDriverName</name> | |
<value>com.mysql.jdbc.Driver</value> | |
</property> | |
<property> | |
<name>javax.jdo.option.ConnectionUserName</name> | |
<value>metastore</value> | |
</property> | |
<property> | |
<name>javax.jdo.option.ConnectionPassword</name> | |
<value>XXXXX</value> | |
</property> | |
<property> | |
<name>datanucleus.autoCreateSchema</name> | |
<value>true</value> | |
</property> | |
<property> | |
<name>datanucleus.autoCreateTables</name> | |
<value>true</value> | |
</property> | |
<property> | |
<name>datanucleus.fixedDatastore</name> | |
<value>false</value> | |
</property> | |
<property> | |
<name>datanucleus.autoStartMechanism</name> | |
<value>SchemaTable</value> | |
</property> | |
<property> | |
<name>hive.metastore.schema.verification</name> | |
<value>false</value> | |
</property> | |
</configuration> | |
spark/sbin/start-history-server.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment