MAVEN_OPTS=-Dorg.slf4j.simpleLogger.defaultLogLevel=warn mvn clean package -DskipTests
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
| sudo easy_install pip | |
| export AIRFLOW_HOME=/usr/lib/airflow | |
| sudo pip install apache-airflow[hdfs,hive,password] | |
| # Cannot uninstall 'Markdown'. It is a distutils installed project | |
| # and thus we cannot accurately determine which files belong to it | |
| # which would lead to only a partial uninstall. |
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
| hdfs dfs -mkdir /tmp/data | |
| hdfs dfs -chmod -R 777 /tmp/data | |
| hdfs dfs -mv /tmp/data.csv /tmp/data | |
| //hive | |
| !connect jdbc:hive2://aervits-hdp1:10000 "" "" | |
| CREATE EXTERNAL TABLE IF NOT EXISTS traffic_csv ( |
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
| export MAVEN_OPTS="-Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss,SSS" |
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
| ./dev/make-distribution.sh --name hadoop3.2 --pip --tgz -Phadoop-3.2 -Pyarn | |
| # this does not build R support and you have to be on a branch that has profile for the version of hadoop you're running, this one is master branch | |
| # the pom for Spark master has the following profile, activate it with -Phadoop-3.2, for other versions that are not present | |
| # need to create own profiles and match dependencies if necessary | |
| # <profile> | |
| # <id>hadoop-3.2</id> | |
| # <properties> | |
| # <hadoop.version>3.2.0</hadoop.version> | |
| # <curator.version>2.13.0</curator.version> |
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
| # PR option will be against the origin and not fork | |
| git checkout -b new-branch origin/master | |
| git cherry-pick old-branch | |
| git push origin new-branch | |
| <create PR from new-branch> |
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
| git branch -r | |
| # let's say you want branch-1 | |
| git checkout origin/branch-1 |
sudo apt-get update
sudo apt-get install python3-pip python3-dev libpq-devMy CockroachDB instance is running on 10.142.0.46 in insecure mode on port 26257. These details will be necessary when we’re going to configure Django. You can validate connectivity by accessing