limowang opened a new issue, #2203:
URL: https://github.com/apache/incubator-pegasus/issues/2203
1. What did you do?
When I execute the following command in a Kerberos-authenticated environment:
sudo -u username -E sh pegasus_manual_compact.sh --cluster ip:port -a
table_name --bottommost_level_compaction skip
I find that the output is as follows:
UID: 7013
PID: 12864
cluster:
app_name:table_name
type: once
Start time: 2025-03-11 11:50:13
After that, it exits directly. When I enter the shell and use the following
command:
remote_command -t replica-server replica.query-compact ${app_id}
I confirm that the manual_compact was not executed.
2. why?
When executing the command:
echo "set_meta_level steady" | ./run.sh shell --cluster ${cluster}
&>/tmp/$UID.$PID.pegasus.set_meta_level
in `pegasus_manual_compact.sh`, an error occurs. The logs show:
./run.sh: line 1739: path_to_run_sh/config-shell.ini.28694: Permission denied
3. How to resolve this?
We can modify `pegasus_manual_compact.sh` to accept `--cluster` or
`--config` parameters(but not both simultaneously). When the `--config`
parameter is used, the shell commands inside will use `./run.sh shell --config
config_file_path`, so there is no need to generate new files, which avoids the
directory permission issue.
This happens because the `./run.sh shell --cluster` command attempts to
create a new config file (config-shell.ini) in the directory where `run.sh` is
located. However, the user executing the command does not have write
permissions in this directory, causing the failure.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]