๐ปTech159 [HIVE] Delimiter \u001E \u001E -> \036 [record seperator] ROW FORMAT DELIMITED FIELDS TERMINATED BY '\036' ์ผ๋ก ์ค์ ํ Desc ์กฐํํ๋ฉด \u001E ํฅ์ฌ๊ฐ์ผ๋ก ๋์ต๋๋ค. ์๋ site ์์คํคํ ์ฐธ๊ณ ํ๋ฉด hive ๋๋ฆฌ๋ฏธํฐ ๊ด๋ จํ์ฌ ์ดํดํ๊ธฐ ์ฝ์ต๋๋ค. 2016. 11. 30. [Hive] ํ ์ด๋ธ ์ญ์ ํ์ง ์๊ณ drop database ํ๋ ๋ฐฉ๋ฒ temp ๋ฐ์ดํฐ ๋ฒ ์ด์ค๋ก ํ ์ด๋ธ ๋ช ์ ๋ณ๊ฒฝํ๊ณ ์ญ์ ํด์ฃผ๋ฉด ๋ฉ๋๋ค. CREATE DATABASE temp; USE targetDB; ALTER TABLE targetTable RENAME TO temp.targetTable ; DROP DATABASE targetDB; 2016. 10. 18. [Hive] ๋ฐ์ดํฐ๋ฒ ์ด์ค ์คํค๋ง ์ ์ฒด ์ถ์ถ โพ hive์์ ๋ฐ์ดํฐ๋ฒ ์ด์ค ์คํค๋ง๋ฅผ ํต์งธ๋ก(ํ์ ํ ์ด๋ธ๋ค๊น์ง) ์์ฑํ๋ shell script #!/bin/bash OPTION="--showHeader=false --outputformat=tsv2" DATABASE_NM=`hive ${OPTION} -e "show databases;"` for database in $DATABASE_NM do TABLE_NM=`hive ${OPTION} -e "use ${database}; show tables;"` for table in $TABLE_NM do hive ${OPTION} -e "show create table ${database}.${table}" >> ${database}_schema.hql echo ";" >> ${database}_schema.. 2016. 10. 4. Error writing to output [influxdb]: Could not write to any InfluxDB server in cluster influxDB ์ต์ ๋ฒ์ ์ผ๋ก ์ค์นํด ์ฃผ์ธ์. ์ ๋ influxdb-0.9.6.1-1.x86_64.rpm ์ค์นํ๋๋ฐ ์์ ๊ฐ์ ์๋ฌ๊ฐ ๋์ ์ต์ ๋ฒ์ influxdb-0.12.2.1-1.x86_64.rpm ์ค์นํด ์ฃผ๋๊น ๋ฌธ์ ํด๊ฒฐ๋์ต๋๋ค. 2016. 8. 26. [Hive] Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient โถHive exception 16/07/18 11:00:43 WARN Hive: Failed to access metastore. This class should not accessed in runtime. org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient at org.apache.hadoop.hive.ql.metadata.Hive.getAllDatabases(Hive.java:1236) at org.apache.hadoop.hive.ql.metadata.Hive.re.. 2016. 7. 18. [Java] TarArchiveInputStream error detected parsing the header ๐ซ ERROR java.io.IOException: Error detected parsing the header FileInputStream fin = null; BufferedInputStream bis = null; GzipCompressorInputStream gzIn = null; TarArchiveInputStream tarIn = null; InputStreamReader is = null; BufferedReader br = null; fin = new FileInputStream(); bis = new BufferedInputStream(fin); tarIn = new TarArchiveInputStream(bis); is = new InputStreamReader(tarIn, "UTF-8.. 2016. 7. 11. [Java] ๋ฌธ์์ด์์ date ํน์ ํจํด ๊ฐ์ ธ์ค๊ธฐ ๐จ๐ป ๋ฌธ์์ด์์ ํน์ ํจํด์ date ๊ฒ์ถํ๋ ๋ฐฉ๋ฒ ๋ฌธ์์ด์์ ์ ๊ท์์ ์ด์ฉํ์ฌ Date yyMMdd ํํ์ ํจํด ๊ฒ์ถ String yyMMdd = "(19|20)\\d{2}(0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01])"; String date = "20160620date"; String src = ""; Pattern pattern = Pattern.compile(yyMMdd); Matcher matcher = pattern.matcher(date); while(matcher.find()){ src = matcher.group(); } System.out.println("src: " + src); ๊ฒฐ๊ณผ ๊ฐ : 20160620 2016. 6. 20. [SOLVED] wget: unable to resolve host address Error ๋ฆฌ๋ ์ค์์ wget ์ฌ์ฉํ์ฌ ํ์ผ ๋ค์ด๋ก๋ํ ๊ฒฝ์ฐ ๋๋ ์๋ฌ์ ๋๋ค. ์ ๋ 2๊ฐ์ง ์๋ฌ๊ฐ ๋์ ์ ๋ฆฌํด ๋ดค์ด์. ๐ซ Error 1 wget: unable to resolve host address ๐ก SOLVED 1 resolv.conf ๋ฌธ์์ nameserver 8.8.8.8 ์ถ๊ฐํด์ค๋๋ค. sudo vi /etc/resolv.conf nameserver 8.8.8.8 ----->์ถ๊ฐ nameserver 8.8.8.8๋ ๊ตฌ๊ธ DNS ์ฃผ์์ ๋๋ค. ๊ตฌ๊ธ DNS๋ฅผ ์ด์ฉํด์ ๋ค์ด๋ฐ์ ์ ์๋ ๋ฐฉ๋ฒ ๊ฐ์ต๋๋ค. ๋ค์์๋ฒ๋ฅผ ์ถ๊ฐํด ์ฃผ๊ณ wget์ ์ด์ฉํ์ฌ ๋ค์ ๋ค์ด ๋ฐ์ต๋๋ค. ๊ทธ๋ฌ๋ค ๋ณด๋ฉด ๋ ๋ค๋ฅธ ์๋ฌ๊ฐ ๋ฐ์ํฉ๋๋ค... ์ ๊ฐ์ ๊ฒฝ์ฐ๋... ๐ซ ERROR 2 cannot verify archive.apache.org's.. 2016. 5. 20. ์ด์ 1 ยทยทยท 14 15 16 17 18 19 20 ๋ค์