Uploaded image for project: 'Apache InLong'
  1. Apache InLong
  2. INLONG-437

When using flink connector tubemq to create a table environment error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.8.0
    • None

    Description

      Code:

      StreamExecutionEnvironment bsEnv = StreamExecutionEnvironment.getExecutionEnvironment();
      EnvironmentSettings bsSettings = EnvironmentSettings.newInstance().useBlinkPlanner().inStreamingMode().build();
      StreamTableEnvironment bsTableEnv = StreamTableEnvironment.create(bsEnv, bsSettings);

      Error info:

      java.lang.IllegalAccessException: Class java.util.ServiceLoader$LazyIterator can not access a member of class org.apache.flink.connectors.tubemq.TubemqTableSourceSinkFactory with modifiers "private"

       

      Recommended solution:

      step1: Modify the constructor of the TubemqTableSourceSinkFactory class to public.

      step2: Modify the content of the META-INF/services/org.apache.flink.table.factories.TableFactory file: org.apache.flink.connectors.tubemq.TubemqTableSourceSinkFactory.

       

      Attachments

        Activity

          People

            duli duli
            leno xianle cao
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 40m
                1h 40m