[Bug]: 关于addax.py过期声明
weihebu opened this issue · comments
Contact Details(联系人)
What happened?
作者你好,我在使用最新版本的日志中看到关于addax.py过期声明,如果以后过期移除的话,将跟
https://github.com/WeiYe-Jing/datax-web 这个web前端不再兼容,这样会带来使用上不便,不知出于何种考虑要更换启动方法呢?
另外我注意到日志中有部分�不识别的字符串,请问如何修改才可以正确显示?
Version
4.0.9 (Default)
OS Type
Linux (Default)
Java JDK Version
Oracle JDK 1.8.0
Relevant log output
2022-08-04 15:26:01 [AnalysisStatistics.analysisStatisticsLog-53] �[36m2022-08-04 15:26:01.065�[0;39m �[32m[ job-0]�[0;39m �[34mINFO �[0;39m �[35mAbstractScheduler �[0;39m - Scheduler accomplished all tasks.
2022-08-04 15:26:01 [AnalysisStatistics.analysisStatisticsLog-53] �[36m2022-08-04 15:26:01.067�[0;39m �[32m[ job-0]�[0;39m �[34mINFO �[0;39m �[35mJobContainer �[0;39m - Addax Writer.Job [postgresqlwriter] do post work.
2022-08-04 15:26:01 [AnalysisStatistics.analysisStatisticsLog-53] �[36m2022-08-04 15:26:01.068�[0;39m �[32m[ job-0]�[0;39m �[34mINFO �[0;39m �[35mJobContainer �[0;39m - Addax Reader.Job [oraclereader] do post work.
2022-08-04 15:26:01 [AnalysisStatistics.analysisStatisticsLog-53] �[36m2022-08-04 15:26:01.071�[0;39m �[32m[ job-0]�[0;39m �[34mINFO �[0;39m �[35mJobContainer �[0;39m - PerfTrace not enable!
2022-08-04 15:26:01 [AnalysisStatistics.analysisStatisticsLog-53] �[36m2022-08-04 15:26:01.075�[0;39m �[32m[ job-0]�[0;39m �[34mINFO �[0;39m �[35mStandAloneJobContainerCommunicator�[0;39m - Total 0 records, 0 bytes | Speed 0B/s, 0 records/s | Error 0 records, 0 bytes | All Task WaitWriterTime 0.000s | All Task WaitReaderTime 0.000s | Percentage 100.00%
2022-08-04 15:26:01 [AnalysisStatistics.analysisStatisticsLog-53] �[36m2022-08-04 15:26:01.077�[0;39m �[32m[ job-0]�[0;39m �[34mINFO �[0;39m �[35mJobContainer �[0;39m -
2022-08-04 15:26:01 [AnalysisStatistics.analysisStatisticsLog-53] 任务启动时刻 : 2022-08-04 15:25:53
2022-08-04 15:26:01 [AnalysisStatistics.analysisStatisticsLog-53] 任务结束时刻 : 2022-08-04 15:26:01
2022-08-04 15:26:01 [AnalysisStatistics.analysisStatisticsLog-53] 任务总计耗时 : 7s
2022-08-04 15:26:01 [AnalysisStatistics.analysisStatisticsLog-53] 任务平均流量 : 0B/s
2022-08-04 15:26:01 [AnalysisStatistics.analysisStatisticsLog-53] 记录写入速度 : 0rec/s
2022-08-04 15:26:01 [AnalysisStatistics.analysisStatisticsLog-53] 读出记录总数 : 0
2022-08-04 15:26:01 [AnalysisStatistics.analysisStatisticsLog-53] 读写失败总数 : 0
2022-08-04 15:26:01 [AnalysisStatistics.analysisStatisticsLog-53]
2022-08-04 15:26:01 [AnalysisStatistics.analysisStatisticsLog-53] ==================== DEPRECATED WARNING ========================
2022-08-04 15:26:01 [AnalysisStatistics.analysisStatisticsLog-53] addax.py is deprecated, It's going to be removed in future release.
2022-08-04 15:26:01 [AnalysisStatistics.analysisStatisticsLog-53] As a replacement, you can use addax.sh to run job
2022-08-04 15:26:01 [AnalysisStatistics.analysisStatisticsLog-53] ==================== DEPRECATED WARNING ========================
2022-08-04 15:26:01 [AnalysisStatistics.analysisStatisticsLog-53]
2022-08-04 15:26:01 [JobThread.run-165] <br>----------- datax-web job execute end(finish) -----------<br>----------- ReturnT:ReturnT [code=200, msg=LogStatistics{taskStartTime=2022-08-04 15:25:53, taskEndTime=2022-08-04 15:26:01, taskTotalTime=7s, taskAverageFlow=0B/s, taskRecordWritingSpeed=0rec/s, taskRecordReaderNum=0, taskRecordWriteFailNum=0}, content=null]
2022-08-04 15:26:01 [TriggerCallbackThread.callbackLog-186] <br>----------- datax-web job callback finish.
addax.py
准备废弃的原因是想去掉对 python
的依赖
你看到的乱码实际上是终端的彩色控制符号,如果你不需要,可以修改 conf/logback.xml
文件
将第28行的
%cyan(%d{yyyy-MM-dd HH:mm:ss.SSS}) %green([%12thread]) %highlight(%-5level) %magenta(%-20logger{0}) - %msg%n
改成
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{0} - %msg%n
即可
感谢答复。我查到说linux是自带ANSI功能是支持彩色日志的,但是我那个机器怎么就是乱码,颜色不起作用呢,是缺少什么东西吗?
懂了,其实不是终端不支持,而是datax-web这个项目读取日志的时候没有进行颜色转换,再展示到浏览器中的缘故。