Note that the ansi sql standard defines "timestamp" as equivalent to "timestamp without time zone". However Spark's behavior depends on both the version of spark and the file format
| format \ spark version | <= 2.0.0 | >= 2.0.1 |
|---|
| package io.github.sandornemeth.spring; | |
| import java.util.Arrays; | |
| import java.util.stream.StreamSupport; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import org.springframework.context.event.ContextRefreshedEvent; | |
| import org.springframework.context.event.EventListener; | |
| import org.springframework.core.env.AbstractEnvironment; |
| # do it once | |
| seq 1 | parallel -n0 "curl -H 'Content-Type: application/json' http://httpbin.org/post -X POST -d '{\"url\":\"http://google.com/\"}'" | |
| # do it twice | |
| seq 2 | parallel -n0 "curl -H 'Content-Type: application/json' http://httpbin.org/post -X POST -d '{\"url\":\"http://google.com/\"}'" | |
| # do it 4 times, but at 2 a time | |
| seq 4 | parallel -n0 -j2 "curl -H 'Content-Type: application/json' http://httpbin.org/post -X POST -d '{\"url\":\"http://google.com/\"}'" | |
| # you can also put all your commands into a file |