Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Later
-
1.9.1
-
None
-
Hadoop version: 3.1.1.3.1.0.0-78
flink-1.9.1
hdp-3.1.0.0-78-kafka
-
Important
Description
public UserInfo map(String s) throws Exception {
if (StringUtils.isBlank(s))
JSONObject alterTable = KafkaOnHDFSAsHiveShell.alterTableorCount(this.doday, this.shellPath, this.logPath + "/" + this.tableName + "_" + this.doday + ".log", this.dbName, this.tableName, this.part, true);
JSONObject count = KafkaOnHDFSAsHiveShell.alterTableorCount(this.doday, this.shellPath, this.logPath + "/" + this.tableName + "_" + this.doday + ".log", this.dbName, this.tableName, this.part, false);
//There is no response at this point
//alterTableorCount() is Methods to Execute the Linux shell command
if (!alterTable.isEmpty()) {
if (alterTable.containsKey("msg") && alterTable.containsKey("value"))
}
if (!count.isEmpty()) {
if (count.containsKey("msg") && count.containsKey("value"))
}
//将传入的Json格式转为实体类
return JSONObject.parseObject(s, UserInfo.class);
}
}