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
2013-04-10 07:08:57,564 ERROR metastore.RetryingHMSHandler (RetryingHMSHandler.java:invoke(134)) - NoSuchObjectException(message:default.src table not found) | |
at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.get_table(HiveMetaStore.java:1369) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | |
at java.lang.reflect.Method.invoke(Method.java:597) | |
at org.apache.hadoop.hive.metastore.RetryingHMSHandler.invoke(RetryingHMSHandler.java:102) | |
at com.sun.proxy.$Proxy10.get_table(Unknown Source) | |
at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.getTable(HiveMetaStoreClient.java:838) | |
at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.dropTable(HiveMetaStoreClient.java:639) |
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
[junit] Running: diff -a /Users/sho/src/apache/hive/build/ql/test/logs/clientpositive/udf_unix_timestamp.q.out /Users/sho/src/apache/hive/ql/src/test/results/clientpositive/udf_unix_timestamp.q.out | |
[junit] 67c67 | |
[junit] < 2009 Mar 20 11:30:01 am NULL | |
[junit] --- | |
[junit] > 2009 Mar 20 11:30:01 am 1237573801 |
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
# 注: スクリプトはダミーです。実行しても動きません | |
# ソースを管理するディレクトリ | |
SRC_DIR=/path/to/src | |
# python コードのあるディレクトリ | |
PROJECT_DIR=hoge | |
# hoge プロジェクトの github URL | |
PROJECT_GITHUB_URL=git://github/url/to/hoge |
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
(py3)sho@sho-mbp ~/src/kaa % python setup.py install 42233 21:43 | |
running install | |
running bdist_egg | |
running egg_info | |
creating kaa.egg-info | |
writing requirements to kaa.egg-info/requires.txt | |
writing entry points to kaa.egg-info/entry_points.txt | |
writing top-level names to kaa.egg-info/top_level.txt | |
writing dependency_links to kaa.egg-info/dependency_links.txt | |
writing kaa.egg-info/PKG-INFO |
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
https://www.virtualbox.org/wiki/Downloads | |
ここからDLする。 | |
- VirtualBox 4.2.16 for OS X hosts | |
DL して dmg 開いて pkg ダブルクリックする。 | |
- VirtualBox 4.2.16 Oracle VM VirtualBox Extension Pack | |
「Virtualbox」-> 「環境設定」-> 「機能拡張」-> 変なマークを押してパッケージを追加。 |
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
def function_fizbuzz(x): | |
fizz = lambda x: x[1](x[0]) | |
buzz = lambda x: (x, lambda y: "fizzbuzz" if y % 3 == 0 else "buzz") if x % 5 == 0 else (x, lambda y: "fizz" if y % 3 == 0 else y) | |
return fizz(buzz(x)) | |
[print(function_fizbuzz(x)) for x in xrange(1,100)] |
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
* go のコンパイル | |
brew のインストールファイルにはファイルが欠けているものがあるので、ソースから go をビルドする必要がある | |
ソースは以下のコマンドでとってこれる。 | |
$ hg clone -u release https://code.google.com/p/go | |
GOROOTの変更を忘れずに。 |
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
def f(num, max_num): | |
""" | |
num: くじを引く回数 | |
max_num: くじの総数 | |
""" | |
p = 1.0 | |
for i in xrange(num): | |
p = p * (float(max_num - i - 1) / (max_num - i)) | |
return p | |
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
[sho@demo]/opt/cloudera/parcels/CDH/share/hue% export HUE_APP_REG_DIR=/opt/cloudera/parcels/CDH/share/hue | |
[sho@demo]/opt/cloudera/parcels/CDH/share/hue% tools/app_reg/app_reg.py --list | |
Name Version Author Path | |
------------------ ------- --------------- ----------------------------------- | |
about 2.5.0 Hue ./apps/about | |
beeswax 2.5.0 Hue ./apps/beeswax | |
filebrowser 2.5.0 Hue ./apps/filebrowser | |
hbase 2.5.0 Hue ./apps/hbase | |
help 2.5.0 Hue ./apps/help | |
impala 2.5.0 Hue ./apps/impala |
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
% kaa | |
Traceback (most recent call last): | |
File "/Users/sho/.virtualenvs/py3/bin/kaa", line 9, in <module> | |
load_entry_point('kaaedit==0.26.1', 'console_scripts', 'kaa')() | |
File "/Users/sho/.virtualenvs/py3/lib/python3.3/site-packages/pkg_resources.py", line 352, in load_entry_point | |
return get_distribution(dist).load_entry_point(group, name) | |
File "/Users/sho/.virtualenvs/py3/lib/python3.3/site-packages/pkg_resources.py", line 2307, in load_entry_point | |
return ep.load() | |
File "/Users/sho/.virtualenvs/py3/lib/python3.3/site-packages/pkg_resources.py", line 2021, in load | |
entry = __import__(self.module_name, globals(),globals(), ['__name__']) |