You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/07/04 03:27:32 UTC

[GitHub] [incubator-seatunnel] chocolateBlack opened a new issue, #2122: Configuration key 'auth' is set to null but expected STRING

chocolateBlack opened a new issue, #2122:
URL: https://github.com/apache/incubator-seatunnel/issues/2122

   does redis sink must set auth properties? 
   
   I config  a  hive to redis job,  config file shows blew. I got an error " Application diagnostics message: User class threw exception: org.apache.seatunnel.shade.com.typesafe.config.ConfigException$Null: hive2redis.conf: 74: Configuration key 'auth' is set to null but expected STRING"
   
   `env {
     spark.app.name = "SeaTunnel"
     spark.executor.instances = 1
     spark.executor.cores = 1
     spark.executor.memory = "1g"
   
     queue = default
     spark.sql.catalogImplementation = "hive"
   }
   
   source {
     hive  {
       pre_sql = "SELECT id, name FROM default.result_table_name"
       result_table_name = "result_table_name"
     }
   }
   
   transform {
     sql {
       sql = "select CONCAT('a_',id), CONCAT(id, '$', name) from result_table_name"
     }
   }
   
   sink {
     redis {
         host = "192.168.111.111"
         port = 7379
         db_num = 11
         data_type = "KV"
         auth = null
     }
   }`


-- 
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: commits-unsubscribe@seatunnel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-seatunnel] chocolateBlack closed issue #2122: Configuration key 'auth' is set to null but expected STRING

Posted by GitBox <gi...@apache.org>.
chocolateBlack closed issue #2122: Configuration key 'auth' is set to null but expected STRING
URL: https://github.com/apache/incubator-seatunnel/issues/2122


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-seatunnel] chocolateBlack commented on issue #2122: Configuration key 'auth' is set to null but expected STRING

Posted by GitBox <gi...@apache.org>.
chocolateBlack commented on issue #2122:
URL: https://github.com/apache/incubator-seatunnel/issues/2122#issuecomment-1175971757

   > `'auth' is set to null but expected STRING"` so you should put your password in this field. check https://seatunnel.apache.org/docs/2.1.2/connector/sink/Redis
   
   there is no password config to the redis。 I found It was a bug  and fixed in new version。
   org.apache.seatunnel.spark.sink.Redis line 41:
   from
   `auth =  config.getString(AUTH),`
   to 
   `auth = if (config.getIsNull(AUTH)) null else config.getString(AUTH),`
   
   


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-seatunnel] Hisoka-X commented on issue #2122: Configuration key 'auth' is set to null but expected STRING

Posted by GitBox <gi...@apache.org>.
Hisoka-X commented on issue #2122:
URL: https://github.com/apache/incubator-seatunnel/issues/2122#issuecomment-1174517531

   `'auth' is set to null but expected STRING"` so you should put your password in this field. check https://seatunnel.apache.org/docs/2.1.2/connector/sink/Redis


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org