object RestUtil : Loggable { const val RETRIES = 3 const val TIMEOUT = 5 * 60 * 1000 private const val MAX_BODY_SIZE = 0 private const val IGNORE_CONTENT_TYPE = true fun connection( url: String, json: String, headers: Map = emptyMap(), data: Map? = emptyMap(), timeout: Int? = TIMEOUT ): Connection { var connection = Jsoup.connect(url) headers.forEach { connection = connection.header(it.key, it.v..
I would recommend string if at all possible - You are correct that it is very handy to not be limited by a length specifier. Even if the data coming in is only Varchar(30) in length, your ELT/ETL processing will not fail if you send in 31 characters while using a string datatype. https://community.cloudera.com/t5/Support-Questions/Hive-STRING-vs-VARCHAR-Performance/m-p/157939 Hive STRING vs VARC..
sudo yum install java-11-amazon-corretto https://docs.aws.amazon.com/ko_kr/corretto/latest/corretto-11-ug/amazon-linux-install.html Amazon Corretto 11 설치 지침 - Amazon Corretto 이 페이지에 작업이 필요하다는 점을 알려 주셔서 감사합니다. 실망시켜 드려 죄송합니다. 잠깐 시간을 내어 설명서를 향상시킬 수 있는 방법에 대해 말씀해 주십시오. docs.aws.amazon.com
https://stackoverflow.com/questions/68878925/in-spark-how-to-check-the-date-format In Spark, how to check the date format? How can we check the date format in below code. DF = DF.withColumn("DATE", to_date(trim(col("DATE")), "yyyyMMdd")) Error: Caused by: java.time.format. stackoverflow.com
val semaphore = Semaphore(5) coroutineScope { list.map { async { semaphore.acquire() // logic(it) semaphore.release() } }.awaitAll() } https://stackoverflow.com/questions/55877419/how-to-launch-10-coroutines-in-for-loop-and-wait-until-all-of-them-finish/75569716#75569716 how to launch 10 coroutines in for loop and wait until all of them finish? I need to fill list of objects from DB. And before ..
> SELECT months_between('1997-02-28 10:30:00', '1996-10-30'); 3.94959677 > SELECT months_between('1997-02-28 10:30:00', '1996-10-30', false); 3.9495967741935485 https://docs.databricks.com/sql/language-manual/functions/months_between.html months_between function | Databricks on AWS Returns the number of months elapsed between dates or timestamps in expr1 and expr2. Returns A DOUBLE. If expr1 is ..
suspend fun main() { val job = GlobalScope.launch { hello() } job.join() print("done") } fun main() = runBlocking { val job = launch { hello() } job.join() print("done") } https://stackoverflow.com/questions/55904099/how-to-wait-for-all-coroutines-to-finish How to wait for all coroutines to finish? I'm launching a coroutine and I want it to finish before I resume execution of main thread. My cod..
val map = mapOf(Pair("c", 3), Pair("b", 2), Pair("d", 1)) val sorted = map.toSortedMap() println(sorted.keys) // [b, c, d] println(sorted.values) // [2, 3, 1] https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/to-sorted-map.html toSortedMap - Kotlin Programming Language kotlinlang.org
https://hwan-shell.tistory.com/244 Kotlin] for문, while문 사용법 1. for문 코틀린 for문은 다양한 방식으로 작성될 수 있습니다. 1) 일반적인 for문fun main(args:Array) { for(i: Int in 1..10) print("$i ") //output : 1, 2, 3, 4, 5 ... 10 val len: Int = 5 for(i in 1..len) print("$i ") //output : 1, 2, hwan-shell.tistory.com https://stackoverflow.com/questions/49214684/ignore-loop-constant-in-for-loop Ignore loop constant in for loop ..
127.0.0.1 HostName.local 127.0.0.1 localhost hostname https://itholic.github.io/etc-sparkdriver-retires-err/ [spark] Service ‘sparkDriver’ failed after 16 retries (on a random free port)! 오류 Spark Service ‘sparkDriver’ failed after 16 retries (on a random free port)! 오류 해결 itholic.github.io
--conf spark.rpc.message.maxSize=2047 https://stackoverflow.com/questions/54458815/pyspark-serialized-task-exceeds-max-allowed-consider-increasing-spark-rpc-mess Pyspark: Serialized task exceeds max allowed. Consider increasing spark.rpc.message.maxSize or using broadcast variables for lar I'm doing calculations on a cluster and at the end when I ask summary statistics on my Spark dataframe with..
https://christinarok.github.io/2021/04/08/mecab.html PYTHON - 형태소 분석기 mecab 설치 및 사용 방법 (feat. linux, python) - Christina Codes Intro 형태소 분석은 모든 자연어처리(NLP)의 필수 전처리 과정이다. 간단한 word2vec 모델부터 무거운 transformer기반 모델(대표적으로 Bert 모델)까지 인풋으로 입력되는 문장을 작은 단위로 쪼개주는 christinarok.github.io
function requestUtils(method, url, payload) { var xhr = new XMLHttpRequest(); xhr.open(method, url, true); xhr.withCredentials = true; xhr.setRequestHeader("Content-Type", "application/json"); xhr.onreadystatechange = function() { if (this.readyState === XMLHttpRequest.DONE && this.status === 200) { console.log(this); console.log(url, payload); } } xhr.send(payload); } var NAME = "spark-seunggab..
https://github.com/awslabs/migration-hadoop-to-emr-tco-simulator GitHub - awslabs/migration-hadoop-to-emr-tco-simulator Contribute to awslabs/migration-hadoop-to-emr-tco-simulator development by creating an account on GitHub. github.com
https://inpa.tistory.com/entry/AWS-%F0%9F%93%9A-Glue-Crawler%EB%A1%9C-%ED%85%8C%EC%9D%B4%EB%B8%94-%EB%A7%8C%EB%93%A4%EA%B3%A0-Athena%EB%A1%9C-%EC%A1%B0%ED%9A%8C%ED%95%98%EA%B8%B0 [AWS] 📚 Glue Crawler로 테이블 만들고 Athena로 조회하기 Glue Crawler로 S3 스키마 생성 지난 포스팅에서는 csv파일을 S3에 업로드하고 Athena에서 직접 테이블 쿼리문을 실행하여 수동으로 만들어 조회하는 시간을 가져보았다. 이번에는 AWS Glue 서비스가 제 inpa.tistory.com https://docs.aws.amazon.com/ko_kr/gl..
https://stackoverflow.com/questions/38709280/how-to-limit-the-number-of-retries-on-spark-job-failure How to limit the number of retries on Spark job failure? We are running a Spark job via spark-submit, and I can see that the job will be re-submitted in the case of failure. How can I stop it from having attempt #2 in case of yarn container failure or stackoverflow.com
https://unix.stackexchange.com/questions/402750/modify-global-variable-in-while-loop Modify global variable in while loop I have a script that process a folder, and count the files in the mean time. i=1 find tmp -type f | while read x do i=$(($i + 1)) echo $i done echo $i However, $i is always 1, how do I res... unix.stackexchange.com
if (v is List) { https://stackoverflow.com/questions/44098780/how-to-check-instanceof-class-in-kotlin How to check "instanceof " class in kotlin? In kotlin class, I have method parameter as object (See kotlin doc here ) for class type T. As object I am passing different classes when I am calling method. In Java we can able to compare class u... stackoverflow.com
fun ip(): String { val socket = Socket() socket.connect(InetSocketAddress("google.com", 80)) val ip = socket.localAddress.hostAddress socket.close() return ip } https://stackoverflow.com/questions/9481865/getting-the-ip-address-of-the-current-machine-using-java Getting the IP address of the current machine using Java I am trying to develop a system where there are different nodes that are run on..
https://falaner.tistory.com/79 [플러터 오류] Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema 해결하기 - flutter doctor 터미널에 flutter doctor 를 입력하면 다음과 같이 현재 설치 환경에 대한 정보를 확인할 수 있다. 위 사진을 보면 한가지 부분에 [!] 가 되어 있는 것을 볼 수 있고 위 부분에 대한 것은 ' falaner.tistory.com
https://jvvp.tistory.com/1186 플러터(Flutter) 유튜브 재생하기 패키지 flutter_youtube 패키지를 추가합니다. pubspec.yaml dependencies: flutter: sdk: flutter cupertino_icons: ^0.1.3 flutter_youtube: "^2.0.0+1" 예제 참고 링크의 example 코드를 가져왔습니다. 기본적으로 Youtube API Key 를 jvvp.tistory.com https://pub.dev/documentation/flutter_youtube/latest/ flutter_youtube - Dart API docs flutter_youtube This plugin will no longer get updates m..
cd ~/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/221.6008.13.2211.9514443/Android Studio.app/Contents sudo ln -s jbr jre https://velog.io/@wey/Flutter-Unable-to-find-bundled-Java-version Flutter Unable to find bundled Java version Flutter Doctor Java 위치 문제 해결 velog.io
https://stackoverflow.com/questions/67354788/how-to-get-flutter-sdk-path-after-installing-using-homebrew How to get Flutter SDK path after installing using Homebrew Installed flutter using homebrew: https://formulae.brew.sh/cask/flutter#default I can't find the SDK Path, tried copy and pasting this: 1./opt/homebrew/Caskroom/flutter/2.0.5/flutter/bin/internal/s... stackoverflow.com
try: ... except Exception as e: print(e.message) https://stackoverflow.com/questions/4690600/python-exception-message-capturing python exception message capturing import ftplib import urllib2 import os import logging logger = logging.getLogger('ftpuploader') hdlr = logging.FileHandler('ftplog.log') formatter = logging.Formatter('%(asctime)s %(levelname)s %(m... stackoverflow.com
from random import * i = randint(1, 100) # 1부터 100 사이의 임의의 정수 print(i) f = random() # 0부터 1 사이의 임의의 float print(f) f = uniform(1.0, 36.5) # 1부터 36.5 사이의 임의의 float print(f) i = randrange(1, 101, 2) # 1부터 100 사이의 임의의 짝수 print(i) i = randrange(10) # 0부터 9 사이의 임의의 정수 print(i) http://pythonstudy.xyz/python/article/509-%EB%82%9C%EC%88%98-random 예제로 배우는 파이썬 프로그래밍 - 난수 (random) 난수 (random) 파이썬에서 난수(rand..
https://stackoverflow.com/questions/53531830/the-methods-raisedbutton-isnt-defined The methods 'RaisedButton' isn't defined I created a new project and wrote some code in visual studio code. Here is my source code : import 'package:flutter/material.dart'; class Raisedbutton extends StatelessWidget { Widget stackoverflow.com