This file contains 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
problem | |
Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwx--x--x | |
solve | |
./ephemeral-hdfs/bin/hadoop fs -chmod 777 /tmp | |
./ephemeral-hdfs/bin/hadoop fs -chmod 777 /tmp/hive |
This file contains 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
################################################################## | |
# /etc/elasticsearch/elasticsearch.yml | |
# | |
# Base configuration for a write heavy cluster | |
# | |
# wget https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/zip/elasticsearch/2.1.1/elasticsearch-2.1.1.zip | |
# sudo unzip elasticsearch-2.1.1.zip -d /usr/local/elasticsearch | |
# cd /usr/local/elasticsearch/elasticsearch-2.1.1 | |
# sudo bin/plugin install cloud-aws |
This file contains 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
<form name="myForm" class="my-form"> | |
<a href="#" ng-click="register(myForm)">aaa</a> | |
userType: <input name="input" ng-model="userType" required> | |
<span class="error" ng-show="myForm.input.$error.required">Required!</span><br> | |
<tt>userType = {$ userType $}</tt><br> | |
<tt>myForm.input.$valid = {$ myForm.input.$valid$}</tt><br> | |
<tt>myForm.input.$error = {$ myForm.input.$error$}</tt><br> | |
<tt>myForm.$valid = {$ myForm.$valid $}</tt><br> | |
<tt>myForm.$error.required = {$!!myForm.$error.required$}</tt><br> | |
</form> |