This is an automated email from the ASF dual-hosted git repository.
roryqi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino-playground.git
The following commit(s) were added to refs/heads/main by this push:
new 678aabb Update init.sh because sed fail (#146)
678aabb is described below
commit 678aabbece5b609d7a6381e2e6d52ed65daea282
Author: tian bao <[email protected]>
AuthorDate: Tue Jul 22 19:38:58 2025 +0800
Update init.sh because sed fail (#146)
Test codes :
```
root@cfa371ce0ea8:/hive-testbench-hdp3# cat 1
tail -f /dev/null
root@cfa371ce0ea8:/hive-testbench-hdp3# sed -i -E 's/tail -f
\/dev\/null/\s/g' 1 root@cfa371ce0ea8:/hive-testbench-hdp3# cat 1
s
root@cfa371ce0ea8:/hive-testbench-hdp3# vim 1
root@cfa371ce0ea8:/hive-testbench-hdp3# cat 1
tail -f /dev/null
root@cfa371ce0ea8:/hive-testbench-hdp3# sed -i -E 's/tail -f \/dev\/null/
/g' 1 root@cfa371ce0ea8:/hive-testbench-hdp3# cat 1
root@cfa371ce0ea8:/hive-testbench-hdp3#
```
<!--
1. Title: [#<issue>] <type>(<scope>): <subject>
Examples:
- "[#123] feat(operator): support xxx"
- "[#233] fix: check null before access result in xxx"
- "[MINOR] refactor: fix typo in variable name"
- "[MINOR] docs: fix typo in README"
- "[#255] test: fix flaky test NameOfTheTest"
Reference: https://www.conventionalcommits.org/en/v1.0.0/
2. If the PR is unfinished, please mark this PR as draft.
-->
### What changes were proposed in this pull request?
fix report error
---
init/hive/init.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/init/hive/init.sh b/init/hive/init.sh
index 3e7baa2..3ec8588 100644
--- a/init/hive/init.sh
+++ b/init/hive/init.sh
@@ -18,7 +18,7 @@
#
# remove command `tail -f /dev/null` in `/usr/local/sbin/start.sh`, so we can
run subsequent commands
-sed -i -E 's/tail -f \/dev\/null/\s/g' /usr/local/sbin/start.sh
+sed -i -E 's/tail -f \/dev\/null/ /g' /usr/local/sbin/start.sh
cp /tmp/hive/core-site.xml /tmp/hadoop-conf
/bin/bash /usr/local/sbin/start.sh