Review the stop

This commit is contained in:
bao319 2020-03-30 20:32:48 +08:00
parent c61e5b549a
commit 50eb283156
9 changed files with 37 additions and 7 deletions

View File

@ -16,7 +16,7 @@
"name":"WriteToRedis", "name":"WriteToRedis",
"bundle":"cn.piflow.bundle.redis.WriteToRedis", "bundle":"cn.piflow.bundle.redis.WriteToRedis",
"properties":{ "properties":{
"redis_host":"10.0.88.9", "redis_host":"192.168.3.138",
"port":"7000", "port":"7000",
"password":"bigdata", "password":"bigdata",
"column_name":"title", "column_name":"title",

View File

@ -48,6 +48,7 @@ class SelectHiveQLByJDBC extends ConfigurableStop {
.defaultValue("123456") .defaultValue("123456")
.required(true) .required(true)
.example("123456") .example("123456")
.sensitive(true)
descriptor = hivePassword :: descriptor descriptor = hivePassword :: descriptor
val jdbcUrl = new PropertyDescriptor(). val jdbcUrl = new PropertyDescriptor().

View File

@ -72,16 +72,39 @@ class ImpalaRead extends ConfigurableStop{
override def getPropertyDescriptor(): List[PropertyDescriptor] = { override def getPropertyDescriptor(): List[PropertyDescriptor] = {
var descriptor : List[PropertyDescriptor] = List() var descriptor : List[PropertyDescriptor] = List()
val url=new PropertyDescriptor().name("url").displayName("url").description("IP and port number, you need to write like this -- ip:port").defaultValue("").required(true) val url=new PropertyDescriptor().name("url")
.displayName("url")
.description("IP and port number, you need to write like this -- ip:port")
.defaultValue("")
.required(true)
descriptor = url :: descriptor descriptor = url :: descriptor
val user=new PropertyDescriptor().name("user").displayName("user").description("user").defaultValue("").required(false) val user=new PropertyDescriptor()
.name("user")
.displayName("user")
.description("user")
.defaultValue("")
.required(false)
descriptor = user :: descriptor descriptor = user :: descriptor
val password=new PropertyDescriptor().name("password").displayName("password").description("password").defaultValue("").required(false) val password=new PropertyDescriptor()
.name("password")
.displayName("password")
.description("password")
.defaultValue("")
.required(false)
descriptor = password :: descriptor descriptor = password :: descriptor
val sql=new PropertyDescriptor().name("sql").displayName("sql").description("The name of the table has not changed.But you have to specify which database," + val sql=new PropertyDescriptor()
" such as database.table.").defaultValue("").required(true) .name("sql")
.displayName("sql")
.description("The name of the table has not changed.But you have to specify which database,such as database.table.")
.defaultValue("")
.required(true)
descriptor = sql :: descriptor descriptor = sql :: descriptor
val schameString=new PropertyDescriptor().name("schameString").displayName("schameString").description("The field of SQL statement query results is divided by ,").defaultValue("").required(true) val schameString=new PropertyDescriptor()
.name("schameString")
.displayName("schameString")
.description("The field of SQL statement query results is divided by ,")
.defaultValue("")
.required(true)
descriptor = schameString :: descriptor descriptor = schameString :: descriptor
descriptor descriptor

View File

@ -73,6 +73,7 @@ class MysqlRead extends ConfigurableStop {
.defaultValue("") .defaultValue("")
.required(true) .required(true)
.example("12345") .example("12345")
.sensitive(true)
descriptor = password :: descriptor descriptor = password :: descriptor
val sql=new PropertyDescriptor() val sql=new PropertyDescriptor()

View File

@ -73,6 +73,7 @@ class MysqlReadIncremental extends ConfigurableIncrementalStop{
.defaultValue("") .defaultValue("")
.required(true) .required(true)
.example("") .example("")
.sensitive(true)
descriptor = password :: descriptor descriptor = password :: descriptor
val sql=new PropertyDescriptor() val sql=new PropertyDescriptor()

View File

@ -71,6 +71,7 @@ class MysqlWrite extends ConfigurableStop{
.defaultValue("") .defaultValue("")
.required(true) .required(true)
.example("123456") .example("123456")
.sensitive(true)
descriptor = password :: descriptor descriptor = password :: descriptor
val dbtable=new PropertyDescriptor() val dbtable=new PropertyDescriptor()

View File

@ -70,6 +70,7 @@ class OracleRead extends ConfigurableStop{
.required(true) .required(true)
.example("123456") .example("123456")
.sensitive(true) .sensitive(true)
.sensitive(true)
descriptor = password :: descriptor descriptor = password :: descriptor
val sql=new PropertyDescriptor() val sql=new PropertyDescriptor()

View File

@ -63,6 +63,7 @@ class OracleReadByPartition extends ConfigurableStop{
.defaultValue("") .defaultValue("")
.required(true) .required(true)
.example("123456") .example("123456")
.sensitive(true)
descriptor = password :: descriptor descriptor = password :: descriptor
val sql=new PropertyDescriptor() val sql=new PropertyDescriptor()

View File

@ -91,6 +91,7 @@ class OracleWrite extends ConfigurableStop{
.defaultValue("") .defaultValue("")
.required(true) .required(true)
.example("123456") .example("123456")
.sensitive(true)
descriptor = password :: descriptor descriptor = password :: descriptor
val table=new PropertyDescriptor() val table=new PropertyDescriptor()