wantao666 opened a new issue #10054:
URL: https://github.com/apache/shardingsphere/issues/10054


   i use docker to run sharing-proxy,it show that error.could you help me? 
waiting for your reply.
   
   `Caused by: org.yaml.snakeyaml.error.YAMLException: Invalid tag: 
!READ_WRITE_SPLITTING`
   
   
![image](https://user-images.githubusercontent.com/29670394/114408139-b6167400-9bdb-11eb-8a51-0c8475c86ab0.png)
   
   ===========================below is the detail 
operation===========================
   start command
    ```shell
    docker run --name=sharding-proxy -itd -v 
/root/sharding-proxy/conf:/opt/sharding-proxy/conf -e PORT=3308 -p 13308:3308 
apache/sharding-proxy
    ```
    `server.yaml`
   
   ```yml
   authentication:
     users:
        root:
          password: 123456
          #sharding:
                #password: sharding
          #authorizedSchemas: sharding_db
   props:
     max-connections-size-per-query: 1
     executor-size: 16  # Infinite by default.
   ```
   `config-read-write-splitting.yaml`
   ```yml
   
   schemaName: TEST_DB
   
   dataSources:
     writey_ds:
       url: 
jdbc:mysql://101.133.213.103:3000/test?serverTimezone=UTC&useSSL=false
       username: root
       password: 123456
       connectionTimeoutMilliseconds: 30000
       idleTimeoutMilliseconds: 60000
       maxLifetimeMilliseconds: 1800000
       maxPoolSize: 50
       minPoolSize: 1
       maintenanceIntervalMilliseconds: 30000
     read_ds_0:
       url: 
jdbc:mysql://101.133.213.103:3001/test?serverTimezone=UTC&useSSL=false
       username: root
       password: 123456
       connectionTimeoutMilliseconds: 30000
       idleTimeoutMilliseconds: 60000
       maxLifetimeMilliseconds: 1800000
       maxPoolSize: 50
       minPoolSize: 1
       maintenanceIntervalMilliseconds: 30000
   rules:
   - !READ_WRITE_SPLITTING
     dataSources:
       pr_ds:
         name: pr_ds
         writeyDataSourceName: writey_ds
         readDataSourceNames:
           - read_ds_0
   ```


-- 
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.

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


Reply via email to