在spring scheduler上,这是我想要实现的目标:
list1=[1,2,3]
list2=[4,5,6]
list3=[]
for i in range(0,3):
v=[list1[i],list2[i]].append(list3)
rdd=sc.parallize(list3)
我正在使用石英,似乎无法为初始延迟找到等效的API。
@Scheduled(initialDelay = 1000, fixedDelay = 5000)
有什么想法可以增加延迟吗?
答案 0 :(得分:0)
books <- headlines[ id == 1 ]
chapters <- headlines[ id == 2 ]
rl <- rle(id)
reps <- rl$lengths[ rl$values == 2 ]
books <- unlist(lapply(1:length(books), function(i) rep(books[i], reps[i])))
df <- data.frame(Books=books, Chapters=chapters)
ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Java\jdk1.8.0_211
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
at checkExecSyncError (child_process.js:629:11)
at execFileSync (child_process.js:647:13)
at runOnAllDevices (C:\Users\kiyam\helloNative\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:75:39)
at buildAndRun (C:\Users\kiyam\helloNative\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:169:41)
at then.result (C:\Users\kiyam\helloNative\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:135:12)
at process._tickCallback (internal/process/next_tick.js:68:7)
返回Trigger trigger = newTrigger()
.withSchedule(SimpleScheduleBuilder.simpleSchedule().withIntervalInMilliseconds(5000))
.startAt(nowPlusDelay(5_000))
.build();
的地方。