java—从javardd中删除一行,以特定的符号开头,后跟一个文本

pprl5pva  于 2021-07-14  发布在  Spark
关注(0)|答案(0)|浏览(244)

控制台中的javardd如下所示:

[2021-04-12 21:32:17] TestTracker | Starting Suite 'de.adag.TestSuiteVereinbarungen' 
. Which one will be used is undefined. Please, remove duplicated configuration file (or second PowerMock jar file) from class path to have stable tests.[2021-04-12 21:33:03] TestTracker | Finished Suite 'de.adag.TestSuitefinal'Execution duration '00:00:46' 
[2021-04-12 21:33:03] TestTracker | Starting Suite 'de.adag.TestSuitefinakServices'

我想把第二行的文字去掉,然后离开 [2021-04-12 21:33:03] TestTracker | Finished Suite 'de.adag.TestSuitefinal'Execution duration '00:00:46' 意思是我想把 . Which one will be used is undefined. Please, remove duplicated configuration file from class path to have stable tests. 这是我的密码:

JavaRDD<String> filteredlines1 = filteredlines.map(line -> line.replaceAll("^\\.", "").replaceAll("\\.$", "")) ;

这对我没用。有人知道吗

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题