๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๐Ÿ’ปTech160

[SOLVED] This account is currently not available root ๊ณ„์ •์—์„œ ํƒ€ ๊ณ„์ •์œผ๋กœ ์ „ํ™˜ ์•ˆ๋˜๋Š” ๋ฌธ์ œ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค. ๐Ÿšซ ERROR /etc/passwd์—์„œ ํ•ด๋‹น ๊ณ„์ •์ด nologin์œผ๋กœ ์„ค์ •๋˜์–ด ์žˆ์–ด์„œ ๊ณ„์ • ์ „ํ™˜์ด ๋˜์ง€ ์•Š์Œ $ su - hdfs This account is currently not available $ cat /etc/passwd | grep hdfs hdfs:x:986:979:Hadoop HDFS:/var/lib/hadoop-hdfs:/sbin/nologin ๐Ÿ’ก SOLVED chsh๋กœ ๊ณ„์ • shell์„ ๋ณ€๊ฒฝ ํ›„ su - hdfs ๋ช…๋ น์ด ์ •์ƒ ์ž‘๋™ ## ์ผ์‹œ์ ์œผ๋กœ ๋ณ€๊ฒฝํ•˜์—ฌ hdfs๋กœ ๊ณ„์ • ์ ‘์† ๋ฐฉ๋ฒ• $ su - hdfs -s /bin/bash ## ์˜๊ตฌ์ ์œผ๋กœ ๋ณ€๊ฒฝํ•˜๋Š” ๋ฐฉ๋ฒ• $ chsh -s /bin/bash hdfs $ cat /etc.. 2020. 1. 14.
Unable to issue query: the Host Monitor is not running ๐Ÿšซ ERROR Unable to issue query: the Host Monitor is not running ๐Ÿ’ก SOLVED you can install Cloudera Management Serviceor or CM -> Cloudera Management Services -> Instances -> Select the Host Monitor instance and click restart from the actions for selected instances blue button above the instances table. 2020. 1. 7.
[๋ฆฌ๋ˆ…์Šค] JAVA ํŒŒ์ผ ์‹คํ–‰ ๋ฐฉ๋ฒ• java ํŒŒ์ผ ์ƒ์„ฑํ•˜์—ฌ ๋ฆฌ๋ˆ…์Šค์—์„œ java ์‹คํ–‰ํ•˜๋Š” ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค. ์ž๋ฐ”์ฝ”๋“œ๋Š” ๋ฉ”์ธํ•จ์ˆ˜๋กœ ์ž…๋ ฅ๋˜๋Š” ๊ฐ’์„ ์ถœ๋ ฅํ•˜๋Š” ๊ฐ„๋‹จํ•œ ์ฝ”๋“œ๋กœ ์ž‘์„ฑํ–ˆ์Šต๋‹ˆ๋‹ค. public class test{ public static void main(String[] args){ for(String arg:args){ System.out.println(arg); } } } 1. java ํŒŒ์ผ ์ปดํŒŒ์ผ - ๋””๋ ‰ํ† ๋ฆฌ ์•ˆ์— ์ž๋ฐ”ํŒŒ์ผ์„ ์ปดํŒŒ์ผํ•˜์—ฌ ํด๋ž˜์Šค ์ƒ์„ฑ - java ํŒŒ์ผ๋ช…๊ณผ ์ฝ”๋“œ ์•ˆ์— class ๋ช…์„ ๋งž์ถฐ์•ผ ํ•จ javac -d . test.java - ์—ฌ๋Ÿฌ lib jar ํŒŒ์ผ์˜ ํด๋ž˜์Šค ํŒจ์Šค ์—ฐ๊ฒฐํ•ด์„œ ์ปดํŒŒ์ผํ•  ๋•Œ javac -d . -cp lib/hadoop-common-2.7.0.jar:lib/hadoop-distcp-2.7.3.jar:lib/.. 2019. 11. 21.
[Hive] ์ ‘์† session timeout ์„ค์ • hive.server2.idle.operation.timeout = 2h hive.server2.idle.session.timeout = 3h hive.server2.session.check.interval = 3600000 (1h) 2019. 11. 21.
[NiFi] GetFTP - PutHDFS ์—ฐ๋™ ์˜ˆ์ œ ๊ฐ„๋‹จํ•œ nifi ์‚ฌ์šฉ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค. ftp ์„œ๋ฒ„์—์„œ ๋ฐ์ดํ„ฐ๋ฅผ ๊ฐ€์ ธ์™€ hdfs์— ์—…๋กœ๋“œํ•˜๋Š” ์˜ˆ์ œ์ž…๋‹ˆ๋‹ค. 1. Processor ๋ฒ„ํŠผ์„ ์ž‘์—… ํ™”๋ฉด์— ๋Œ์–ด ๋†“์œผ๋ฉด nifi์—์„œ ์ œ๊ณตํ•˜๋Š” processor๋ฅผ ์„ ํƒํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. (GetFTP, PutHDFS ์ถ”๊ฐ€) 2. ์ถ”๊ฐ€ ํ›„ Configure์—์„œ ์„ค์ •์„ ํ•˜๊ณ  processor ์œ„์— ๋งˆ์šฐ์Šค ์ปค์„œ๋ฅผ ์˜ฎ๊ธฐ๋ฉด ๋ฒ„ํŠผ์ด ๋‚˜์˜ค๋Š”๋ฐ ํด๋ฆญ ํ›„ ๋‘ ๊ฐœ์˜ ํ”„๋กœ์„ธ์„œ๋ฅผ ์—ฐ๊ฒฐํ•ด ์ค๋‹ˆ๋‹ค. GetFTP ํ”„๋กœ์„ธ์„œ์— ์Šค์ผ€์ค„์„ 10์ดˆ๋กœ ์„ค์ •ํ•˜์—ฌ 10์ดˆ๋งˆ๋‹ค ์‹คํ–‰๋˜๊ฒŒ ํ•ด ์ฃผ์—ˆ์Šต๋‹ˆ๋‹ค. ftp ์„œ๋ฒ„์™€ ํŒŒ์ผ ์ •๋ณด ์ž…๋ ฅ (Delete Original ์˜ต์…˜์„ true ์„ค์ •ํ•˜๋ฉด get ์ดํ›„ ์›์ฒœ๊ฒฝ๋กœ ๋ฐ์ดํ„ฐ๋ฅผ ์‚ญ์ œ) hdfs ์„ค์ •ํŒŒ์ผ ์œ„์น˜์™€ ์—…๋กœ๋“œํ•  ๊ฒฝ๋กœ๋ฅผ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค. ํ”„๋กœ์„ธ์Šค ์—ฐ๊ฒฐํ•ด ์ค€ ์ƒํƒœ (๋…ธ๋ž€์ƒ‰ Warn.. 2019. 11. 20.
[Java] REST API ํ˜ธ์ถœ ์ฝ”๋“œ JsonObject๋ฅผ ๋„˜๊ฒจ ๊ฒฐ๊ณผ๊ฐ’์„ ์‘๋‹ต๋ฐ›๋Š” REST API ํ˜ธ์ถœ ์ž๋ฐ” ์ฝ”๋“œ์ž…๋‹ˆ๋‹ค. ์•„๋ž˜์™€ ๊ฐ™์ด ๋ฉ”์†Œ๋“œ๋กœ ํ•˜๋‚˜ ์ •๋ฆฌํ•ด ๋‘๋ฉด ์‚ฌ์šฉ์— ์šฉ์ดํ•ฉ๋‹ˆ๋‹ค. /** * REST API ํ˜ธ์ถœ * * @param paramUrl * @param jsonObject void */ private void RestCall(String paramUrl,JSONObject jsonObject){ try { URL url = new URL(paramUrl); HttpURLConnection conn = (HttpURLConnection)url.openConnection(); conn.setRequestMethod("POST"); conn.setRequestProperty("X-Auth-Token", API_KEY); conn.set.. 2019. 11. 19.
[Python] httplib.badstatusline ์—๋Ÿฌ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• httplib๋กœ API URI ํ˜ธ์ถœํ•˜๋Š” ๊ณผ์ •์—์„œ ์•„๋ž˜์™€ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค. API ํ˜ธ์ถœ์„ ๋ฐ˜๋ณตํ•˜์—ฌ ๊ณ„์† ํ˜ธ์ถœํ•˜๋Š” ์ฝ”๋“œ์˜€๋Š”๋ฐ, ์ฒซ๋ฒˆ์งธ ํ˜ธ์ถœ์€ ์ •์ƒ์ ์œผ๋กœ ํ˜ธ์ถœ ๋˜์ง€๋งŒ ๋‘๋ฒˆ์งธ ํ˜ธ์ถœ๋ถ€ํ„ฐ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜๋„ค์š” Traceback (most recent call last): File "test.py", line 40, in clusterInfo = getAppPendingCnt(conn) File "yarnAppStatus.py", line 9, in getAppPendingCnt r1 = conn.getresponse() File "/usr/lib64/python2.7/httplib.py", line 1113, in getresponse response.begin() File "/usr/lib64/python2.. 2019. 11. 1.
[Hive] ์ฟผ๋ฆฌ ์กฐํšŒ์‹œ ํŒŒํ‹ฐ์…˜ ํ•„์ˆ˜ ์ž…๋ ฅ ์˜ต์…˜ hive ์ฟผ๋ฆฌ ์‹คํ–‰ ์‹œ ํŒŒํ‹ฐ์…˜ ์กฐ๊ฑด์„ ์ฃผ์ง€ ์•Š๊ณ  ์‹คํ–‰ํ•  ๊ฒฝ์šฐ YARN ์ž์›์„ ๋งŽ์ด ์‚ฌ์šฉํ•˜๊ธฐ ๋•Œ๋ฌธ์— ํด๋Ÿฌ์Šคํ„ฐ์— ๋ถ€ํ•˜๋ฅผ ์ค๋‹ˆ๋‹ค. ์ด๋Ÿฌํ•œ ๋ฌธ์ œ๋ฅผ ์˜ˆ๋ฐฉํ•˜๊ธฐ ์œ„ํ•ด hive ํŒŒํ‹ฐ์…˜ ํ…Œ์ด๋ธ” ๊ฒฝ์šฐ where ๊ตฌ๋ฌธ ํ•„์ˆ˜ ์ž…๋ ฅ ์กฐ๊ฑด์„ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค set hive.mapred.mode=strict 2019. 9. 30.