Tuesday, January 14, 2014

Apache Tajo CDH - Bug (org.apache.tajo.rootdir)

Note: 'org.apache.tajo.rootdir' bug

1. version

- CDH: CDH-4.4.0-1.cdh4.4.0.p0.39
- Hadoop: Hadoop 2.0.0-cdh4.4.0
- Tajo: https://github.com/gruter/tajo-cdh (2014.01.10)

&

- tajo-0.2.0-incubating

2. Bug

- 'org.apache.tajo.rootdir' property is set at tajo-site.xml
- example

<property>
<name>org.apache.tajo.rootdir</name>
<value>hdfs://hostname:port/tajo</value>
</property>

- there is no error message for setting 'org.apache.tajo.rootdir'
- but new table will not be created at 'hdfs://hostname:port/tajo'
- it will be created at local file system '/tmp/tajo-sdev/' which is default value

3. solution

- do not use 'org.apache.tajo.rootdir' even if there is no error for using it
- use 'tajo.rootdir' instead

4. conclusion

- i think 'org.apache.*' property is not supported anymore
- so 'org.apache.tajo.cluster.distributed' also need to be changed to 'tajo.cluster.distributed' like 'tajo.rootdir'

Apache Tajo CDH - Bug (Insert into tablename)

Note: 'insert into tablename' bug

1. version

- CDH: CDH-4.4.0-1.cdh4.4.0.p0.39
- Hadoop: Hadoop 2.0.0-cdh4.4.0
- Tajo: https://github.com/gruter/tajo-cdh (2014.01.10)

&

- tajo-0.2.0-incubating

2. Bug

- there is no error message for using 'insert into tablename'
- but 'insert into tablename' query will delete the table
- and cause no response from tsql

3. solution

- do not use 'insert into table' even if there is no error for using it
- use 'insert overwrite into table' which means you have to overwrite the file

Monday, January 13, 2014

Apache Tajo CDH - tsql (Fail starting QueryMaster)

Note: solution for 'Fail starting QueryMaster'

1. version

- CDH: CDH-4.4.0-1.cdh4.4.0.p0.39
- Hadoop: Hadoop 2.0.0-cdh4.4.0
- Tajo: https://github.com/gruter/tajo-cdh (2014.01.10)

2. solution

- vi $TAJO_HOME/conf/workers
- add 'localhost'