Aaronx-Gallagher opened a new issue, #9302:
URL: https://github.com/apache/seatunnel/issues/9302

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   I set the parallelism to 5 in env and set the parallelism to 1 in Source. 
However, the result shows that the parallelism has not been changed to 1, but 
remains at 5. Is this a bug, or am I using it incorrectly?
   
   
![Image](https://github.com/user-attachments/assets/b491a4c2-0310-44ef-b636-b101e94ddd99)
   This is mentioned on the page Source Common Options in the official 
documentation.
   
   
![Image](https://github.com/user-attachments/assets/0e0756f2-6dc1-4a91-bf96-9055cfecb346)
   
   
   Then I continued to experiment with Doris and Fakesource, but this parameter 
still had no effect.
   
   I found the relevant parallelism settings in the code, and it seems that 
this does not read from the Source, but only reads from the Env.
   
   
![Image](https://github.com/user-attachments/assets/a3f6d4a9-461c-427a-8ca2-f216fa35ccbe)
   
   
   ### SeaTunnel Version
   
   the seatunnel version is 2.3.10;
   
   ### SeaTunnel Config
   
   ```conf
   env{
     parallelism = 5
     job.mode = "BATCH"
     spark.master=local
   }
   
   source {
     Http {
       parallelism = 1
       plugin_output = "http"
       url = "http://localhost:8083/ttt/testhttp";
       method = "GET"
       format = "json"
       schema = {
         fields {
           msg = string
         }
       }
     }
   }
   transform{
   
   }
   sink{
    Console = {
    plugin_input = "http"
    }
   
   }
   ```
   
   ### Running Command
   
   ```shell
   I run it in SeaTunnelApiExample.class.
   ```
   
   ### Error Exception
   
   ```log
   Caused by: java.lang.IllegalArgumentException: A single split source allows 
only one single reader to be created. Please make sure source parallelism = 1
        at 
org.apache.seatunnel.shade.com.google.common.base.Preconditions.checkArgument(Preconditions.java:141)
        at 
org.apache.seatunnel.connectors.seatunnel.common.source.AbstractSingleSplitSource.createReader(AbstractSingleSplitSource.java:34)
        at 
org.apache.seatunnel.connectors.seatunnel.common.source.AbstractSingleSplitSource.createReader(AbstractSingleSplitSource.java:28)
        at 
org.apache.seatunnel.translation.source.ParallelSource.<init>(ParallelSource.java:106)
        ... 30 more
   ```
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to