Skip to content

Instantly share code, notes, and snippets.

View bsao's full-sized avatar
:octocat:
Working Remote (Berlin, DE)

Robson Júnior bsao

:octocat:
Working Remote (Berlin, DE)
View GitHub Profile
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
@bsao
bsao / elasticsearch.yml
Last active January 26, 2016 16:34 — forked from reyjrar/elasticsearch.yml
ElasticSearch config for a write-heavy cluster
##################################################################
# /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
<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>