You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@linkis.apache.org by GitBox <gi...@apache.org> on 2022/04/08 16:25:16 UTC

[GitHub] [incubator-linkis] legendtkl opened a new issue, #1932: [Bug][1.1.2] User not in deployUser group don't have the permission when execute ec

legendtkl opened a new issue, #1932:
URL: https://github.com/apache/incubator-linkis/issues/1932

   ### Search before asking
   
   - [X] I searched the [issues](https://github.com/apache/incubator-linkis/issues) and found no similar issues.
   
   
   ### Linkis Component
   
   linkis-cg-engineConnManager
   
   ### What happened + What you expected to happen
   
   When we submit job with the user, who is not deployUser and also not same group with deployUser, the ec will be failed because of permission.
   
   1. `ln` related permission in script `engineConnExec.sh`
   ```shell
   ln -sf "/appcom/tmp/engineConnPublickDir/ebb620e6-c631-4850-8702-815c118b25aa/v000001/bin" "/appcom/tmp/test/20220408/shell/767099df-a5eb-4466-8d69-0e1384f92900/bin"
   ```
   
   2. result set log write permission
   The detailed error message is as follow:
   ```text
   2022-04-08 23:54:32.776 ERROR [Linkis-Default-Scheduler-Thread-1] org.apache.linkis.manager.engineplugin.shell.executor.ShellEngineConnExecutor 58 error - execute code failed! java.io.IOException: no permission to  mkdir path /tmp/linkis01/test/linkis
           at org.apache.linkis.storage.fs.impl.LocalFileSystem.mkdirs(LocalFileSystem.java:152) ~[linkis-storage-1.1.0.jar:1.1.0]
           at org.apache.linkis.storage.fs.impl.LocalFileSystem.mkdir(LocalFileSystem.java:136) ~[linkis-storage-1.1.0.jar:1.1.0]
           at org.apache.linkis.storage.utils.FileSystemUtils$.mkdirs(FileSystemUtils.scala:100) ~[linkis-storage-1.1.0.jar:1.1.0]
           at org.apache.linkis.storage.utils.FileSystemUtils$.createNewFileWithFileSystem(FileSystemUtils.scala:67) ~[linkis-storage-1.1.0.jar:1.1.0]
           at org.apache.linkis.storage.utils.FileSystemUtils$$anonfun$createNewFile$1.apply$mcV$sp(FileSystemUtils.scala:59) ~[linkis-storage-1.1.0.jar:1.1.0]
           at org.apache.linkis.storage.utils.FileSystemUtils$$anonfun$createNewFile$1.apply(FileSystemUtils.scala:57) ~[linkis-storage-1.1.0.jar:1.1.0]
           at org.apache.linkis.storage.utils.FileSystemUtils$$anonfun$createNewFile$1.apply(FileSystemUtils.scala:57) ~[linkis-storage-1.1.0.jar:1.1.0]
           at org.apache.linkis.common.utils.Utils$.tryFinally(Utils.scala:61) ~[linkis-common-1.1.0.jar:1.1.0]
           at org.apache.linkis.storage.utils.FileSystemUtils$.createNewFile(FileSystemUtils.scala:60) ~[linkis-storage-1.1.0.jar:1.1.0]
           at org.apache.linkis.storage.resultset.StorageResultSetWriter.createNewFile(StorageResultSetWriter.scala:73) ~[linkis-storage-1.1.0.jar:1.1.0]
           at org.apache.linkis.storage.resultset.StorageResultSetWriter.writeLine(StorageResultSetWriter.scala:85) ~[linkis-storage-1.1.0.jar:1.1.0]
           at org.apache.linkis.storage.resultset.StorageResultSetWriter.addMetaData(StorageResultSetWriter.scala:124) ~[linkis-storage-1.1.0.jar:1.1.0]
           at org.apache.linkis.engineconn.computation.executor.execute.EngineExecutionContext.appendTextResultSet(EngineExecutionContext.scala:90) ~[linkis-computation-engineconn-1.1.0.jar:1.1.0]
           at org.apache.linkis.manager.engineplugin.shell.executor.ShellEngineConnExecutor.executeLine(ShellEngineConnExecutor.scala:152) ~[linkis-engineplugin-shell-1.1.0.jar:1.1.0]
           at org.apache.linkis.engineconn.computation.executor.execute.ComputationExecutor$$anonfun$toExecuteTask$2$$anonfun$apply$10$$anonfun$apply$11.apply(ComputationExecutor.scala:181) ~[linkis-computation-engineconn-1.1.0.jar:1.1.0]
           at org.apache.linkis.engineconn.computation.executor.execute.ComputationExecutor$$anonfun$toExecuteTask$2$$anonfun$apply$10$$anonfun$apply$11.apply(ComputationExecutor.scala:180) ~[linkis-computation-engineconn-1.1.0.jar:1.1.0]
           at org.apache.linkis.common.utils.Utils$.tryCatch(Utils.scala:40) ~[linkis-common-1.1.0.jar:1.1.0]
           at org.apache.linkis.engineconn.computation.executor.execute.ComputationExecutor$$anonfun$toExecuteTask$2$$anonfun$apply$10.apply(ComputationExecutor.scala:182) [linkis-computation-engineconn-1.1.0.jar:1.1.0]
           at org.apache.linkis.engineconn.computation.executor.execute.ComputationExecutor$$anonfun$toExecuteTask$2$$anonfun$apply$10.apply(ComputationExecutor.scala:176) [linkis-computation-engineconn-1.1.0.jar:1.1.0]
           at scala.collection.immutable.Range.foreach(Range.scala:160) [scala-library-2.11.12.jar:?]
           at org.apache.linkis.engineconn.computation.executor.execute.ComputationExecutor$$anonfun$toExecuteTask$2.apply(ComputationExecutor.scala:175) [linkis-computation-engineconn-1.1.0.jar:1.1.0]
           at org.apache.linkis.engineconn.computation.executor.execute.ComputationExecutor$$anonfun$toExecuteTask$2.apply(ComputationExecutor.scala:151) [linkis-computation-engineconn-1.1.0.jar:1.1.0]
           at org.apache.linkis.common.utils.Utils$.tryFinally(Utils.scala:61) [linkis-common-1.1.0.jar:1.1.0]
           at org.apache.linkis.engineconn.computation.executor.execute.ComputationExecutor.toExecuteTask(ComputationExecutor.scala:228) [linkis-computation-engineconn-1.1.0.jar:1.1.0]
           at org.apache.linkis.engineconn.computation.executor.execute.ComputationExecutor$$anonfun$3.apply(ComputationExecutor.scala:243) [linkis-computation-engineconn-1.1.0.jar:1.1.0]
           at org.apache.linkis.engineconn.computation.executor.execute.ComputationExecutor$$anonfun$3.apply(ComputationExecutor.scala:243) [linkis-computation-engineconn-1.1.0.jar:1.1.0]
           at org.apache.linkis.common.utils.Utils$.tryFinally(Utils.scala:61) [linkis-common-1.1.0.jar:1.1.0]
           at org.apache.linkis.engineconn.acessible.executor.entity.AccessibleExecutor.ensureIdle(AccessibleExecutor.scala:55) [linkis-accessible-executor-1.1.0.jar:1.1.0]
           at org.apache.linkis.engineconn.acessible.executor.entity.AccessibleExecutor.ensureIdle(AccessibleExecutor.scala:49) [linkis-accessible-executor-1.1.0.jar:1.1.0]
           at org.apache.linkis.engineconn.computation.executor.execute.ComputationExecutor.ensureOp(ComputationExecutor.scala:135) [linkis-computation-engineconn-1.1.0.jar:1.1.0]
           at org.apache.linkis.engineconn.computation.executor.execute.ComputationExecutor.execute(ComputationExecutor.scala:242) [linkis-computation-engineconn-1.1.0.jar:1.1.0]
           at org.apache.linkis.engineconn.computation.executor.service.TaskExecutionServiceImpl.org$apache$linkis$engineconn$computation$executor$service$TaskExecutionServiceImpl$$executeTask(TaskExecutionServiceImpl.scala:288) [linkis-computation-engineconn-1.1.0.jar:1.1.0]
           at org.apache.linkis.engineconn.computation.executor.service.TaskExecutionServiceImpl$$anon$2$$anonfun$run$2.apply$mcV$sp(TaskExecutionServiceImpl.scala:221) [linkis-computation-engineconn-1.1.0.jar:1.1.0]
           at org.apache.linkis.engineconn.computation.executor.service.TaskExecutionServiceImpl$$anon$2$$anonfun$run$2.apply(TaskExecutionServiceImpl.scala:219) [linkis-computation-engineconn-1.1.0.jar:1.1.0]
           at org.apache.linkis.engineconn.computation.executor.service.TaskExecutionServiceImpl$$anon$2$$anonfun$run$2.apply(TaskExecutionServiceImpl.scala:219) [linkis-computation-engineconn-1.1.0.jar:1.1.0]
           at org.apache.linkis.common.utils.Utils$.tryCatch(Utils.scala:40) [linkis-common-1.1.0.jar:1.1.0]
           at org.apache.linkis.common.utils.Utils$.tryAndWarn(Utils.scala:69) [linkis-common-1.1.0.jar:1.1.0]
           at org.apache.linkis.engineconn.computation.executor.service.TaskExecutionServiceImpl$$anon$2.run(TaskExecutionServiceImpl.scala:219) [linkis-computation-engineconn-1.1.0.jar:1.1.0]
           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_312]
           at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_312]
           at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_312]
           at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_312]
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_312]
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_312]
           at java.lang.Thread.run(Thread.java:748) [?:1.8.0_312]
   
   
   ```
   
   ### Relevent platform
   
   Linkis
   
   ### Reproduction script
   
   Submit job with the user different group with deploy user
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!


-- 
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: dev-unsubscribe@linkis.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For additional commands, e-mail: dev-help@linkis.apache.org


[GitHub] [incubator-linkis] peacewong closed issue #1932: [Bug][1.1.2] User not in deployUser group don't have the permission when execute ec

Posted by GitBox <gi...@apache.org>.
peacewong closed issue #1932: [Bug][1.1.2] User not in deployUser group don't have the permission when execute ec
URL: https://github.com/apache/incubator-linkis/issues/1932


-- 
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: dev-unsubscribe@linkis.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For additional commands, e-mail: dev-help@linkis.apache.org