Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-16907

did not react to cancelling signal for 30 seconds, but is stuck in method:

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Later
    • 1.9.1
    • None
    • Runtime / Task
    • 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))

      { return null; }

      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"))

      { System.out.println(alterTable.getString("msg")); }

      }
      if (!count.isEmpty()) {
      if (count.containsKey("msg") && count.containsKey("value"))

      { System.out.println(count.getString("msg")); System.out.println(count.getString("value")); }

      }
      //将传入的Json格式转为实体类
      return JSONObject.parseObject(s, UserInfo.class);
      }
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            xinyitong 辛羿彤
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: