docker container run ubuntu:latest /bin/echo 'Hello world' docker version docker system info docker system df docker pull nginx docker image ls docker container run --name webserver -d -p 80:80 nginx docker container ps docker container stats webserver docker stop webserver docker start webserver docker image pull centos:7 docker image pull -a centos docker image ls --all -a --digests --no-trunc..
./bin/spark-submit \ --conf spark.sql.shuffle.partitions=300 \ --conf spark.default.parallelism=300 https://cnpnote.tistory.com/entry/HADOOP-sparksqlshufflepartitions%EC%99%80-sparkdefaultparallelism%EC%9D%98-%EC%B0%A8%EC%9D%B4%EC%A0%90%EC%9D%80-%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C [HADOOP] spark.sql.shuffle.partitions와 spark.default.parallelism의 차이점은 무엇입니까? spark.sql.shuffle.partitions..
https://stackoverflow.com/questions/36912442/low-jdbc-write-speed-from-spark-to-mysql Low JDBC write speed from Spark to MySQL I need write about 1 million rows from Spark a DataFrame to MySQL but the insert is too slow. How can I improve it? Code below: df = sqlContext.createDataFrame(rdd, schema) df.write.jdbc(url='x... stackoverflow.com
https://www.geeksforgeeks.org/how-to-take-screenshot-of-a-div-using-javascript/ How to take screenshot of a div using JavaScript ? - GeeksforGeeks A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions. www.geeksforgeeks.org
import java.util.*; public class GFG { public static void main(String[] args) { ArrayList mylist = new ArrayList(); mylist.add("ide"); mylist.add("quiz"); mylist.add("geeksforgeeks"); mylist.add("quiz"); mylist.add("practice"); mylist.add("qa"); System.out.println("Original List : \n" + mylist); Collections.shuffle(mylist); System.out.println("\nShuffled List : \n" + mylist); } } https://www.gee..
var date = new Date(); var copiedDate = new Date(date.getTime()); var date = new Date(); var copiedDate = new Date(date); https://stackoverflow.com/questions/1090815/how-to-clone-a-date-object How to clone a Date object? Assigning a Date variable to another one will copy the reference to the same instance. This means that changing one will change the other. How can I actually clone or copy a Dat..
public static Predicate distinctByKey(Function keyExtractor) { Set seen = ConcurrentHashMap.newKeySet(); return t -> seen.add(keyExtractor.apply(t)); } https://stackoverflow.com/questions/23699371/java-8-distinct-by-property Java 8 Distinct by property In Java 8 how can I filter a collection using the Stream API by checking the distinctness of a property of each object? For example I have a list..
LocalTime.now().getHour() ZonedDateTime.now().getHour() https://stackoverflow.com/questions/907170/java-getminutes-and-gethours Java: getMinutes and getHours How do you get Hours and Minutes since Date.getHours and Date.getMinutes got deprecated? The examples that I found on Google search used the deprecated methods. stackoverflow.com
SELECT json_extract_scalar(json, '$.store.book[0].author'); https://stackoverflow.com/questions/50252774/extract-value-from-a-column-presto extract value from a column presto i have two columns: col1: Adam Smith col2: [{"productId":"328608","invoiceId":"16150101","productType":"car"}] i need to select this: col1: Adam Smith ProductId: 328608 any ideas? Thanks. stackoverflow.com
DELETE FROM cwd_group WHERE id IN (SELECT ext_id FROM (SELECT DISTINCT a.id ext_id FROM cwd_group a JOIN cwd_group b ON a.group_name=b.group_name JOIN cwd_directory d ON d.id=a.directory_id WHERE a.directory_id != b.directory_id AND directory_name = 'My JIRA Server') tmp); https://www.lesstif.com/dbms/mysql-error-1093-you-can-t-specify-target-table-tablename-for-update-in-from-clause-18220088.ht..
ArrayList
SELECT * FROM t ORDER BY (CASE WHEN SUBSTRING(name,1,1) RLIKE '[ㄱ-ㅎ가-힣]' THEN 1 WHEN SUBSTRING(name,1,1) RLIKE '[a-zA-Z]' THEN 2 ELSE 3 END), name https://solbel.tistory.com/429 [sql] mysql 데이터 정렬 - 오름차순, 한글-영문-숫자 순서 [sql] mysql 데이터 정렬 - 오름차순, 한글-영문-숫자 순서 * MySQL에서 처리 SELECT * FROM tb_ncc_new_category WHERE service_enable_mobile = 'Y' AND category_type = 'magazine' ORDER BY (CAS.. solbel.tistory..
https://www.edwith.org/boostcourse-dl-pytorch/lecture/42286/ [LECTURE] Lab-04-1 Multivariable Linear regression : edwith 학습목표 다항 선형 회귀(Multivariable Linear regression)에 대해 알아본다. 핵심키워드 다항 선형 회귀(Multivariable Linear regress... - tkddyd www.edwith.org