/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/packageorg.apache.dolphinscheduler.remote.command;importorg.apache.dolphinscheduler.remote.utils.JsonSerializer;importjava.io.Serializable;/**
* kill task request command
*/publicclassTaskKillRequestCommandimplementsSerializable{/**
* task id
*/privateinttaskInstanceId;publicintgetTaskInstanceId(){returntaskInstanceId;}publicvoidsetTaskInstanceId(inttaskInstanceId){this.taskInstanceId=taskInstanceId;}/**
* package request command
*
* @return command
*/publicCommandconvert2Command(){Commandcommand=newCommand();command.setType(CommandType.TASK_KILL_REQUEST);byte[]body=JsonSerializer.serialize(this);command.setBody(body);returncommand;}@OverridepublicStringtoString(){return"TaskKillRequestCommand{"+"taskInstanceId="+taskInstanceId+'}';}}
\ No newline at end of file
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/packageorg.apache.dolphinscheduler.remote.command;importorg.apache.dolphinscheduler.remote.utils.JsonSerializer;importjava.io.Serializable;importjava.util.List;/**
* kill task response command
*/publicclassTaskKillResponseCommandimplementsSerializable{/**
* taskInstanceId
*/privateinttaskInstanceId;/**
* host
*/privateStringhost;/**
* status
*/privateintstatus;/**
* processId
*/privateintprocessId;/**
* other resource manager appId , for example : YARN etc
*/protectedList<String>appIds;publicintgetTaskInstanceId(){returntaskInstanceId;}publicvoidsetTaskInstanceId(inttaskInstanceId){this.taskInstanceId=taskInstanceId;}publicStringgetHost(){returnhost;}publicvoidsetHost(Stringhost){this.host=host;}publicintgetStatus(){returnstatus;}publicvoidsetStatus(intstatus){this.status=status;}publicintgetProcessId(){returnprocessId;}publicvoidsetProcessId(intprocessId){this.processId=processId;}publicList<String>getAppIds(){returnappIds;}publicvoidsetAppIds(List<String>appIds){this.appIds=appIds;}/**
* package request command
*
* @return command
*/publicCommandconvert2Command(){Commandcommand=newCommand();command.setType(CommandType.TASK_KILL_RESPONSE);byte[]body=JsonSerializer.serialize(this);command.setBody(body);returncommand;}@OverridepublicStringtoString(){return"TaskKillResponseCommand{"+"taskInstanceId="+taskInstanceId+", host='"+host+'\''+", status="+status+", processId="+processId+", appIds="+appIds+'}';}}
\ No newline at end of file
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
StringmysqlToHive="{\"jobName\":\"sqoop_import\",\"jobType\":\"TEMPLATE\",\"concurrency\":1,\"modelType\":\"import\",\"sourceType\":\"MYSQL\",\"targetType\":\"HIVE\",\"sourceParams\":\"{\\\"srcDatasource\\\":2,\\\"srcTable\\\":\\\"person_2\\\",\\\"srcQueryType\\\":\\\"1\\\",\\\"srcQuerySql\\\":\\\"SELECT * FROM person_2\\\",\\\"srcColumnType\\\":\\\"0\\\",\\\"srcColumns\\\":\\\"\\\",\\\"srcConditionList\\\":[],\\\"mapColumnHive\\\":[],\\\"mapColumnJava\\\":[{\\\"prop\\\":\\\"id\\\",\\\"direct\\\":\\\"IN\\\",\\\"type\\\":\\\"VARCHAR\\\",\\\"value\\\":\\\"Integer\\\"}]}\",\"targetParams\":\"{\\\"hiveDatabase\\\":\\\"stg\\\",\\\"hiveTable\\\":\\\"person_internal_2\\\",\\\"createHiveTable\\\":true,\\\"dropDelimiter\\\":false,\\\"hiveOverWrite\\\":true,\\\"replaceDelimiter\\\":\\\"\\\",\\\"hivePartitionKey\\\":\\\"date\\\",\\\"hivePartitionValue\\\":\\\"2020-02-16\\\"}\",\"localParams\":[]}";