MacChen01 commented on PR #1130:
URL: https://github.com/apache/bigtop/pull/1130#issuecomment-1647554191

   The **_/sbin/service_** cmd is used by default to start component(such as 
hbase, the phoenix dep) in openEuler, but the phoenix's smoke test deploy use 
the systemctl cmd would got error above mentioned.
   
   
![image](https://github.com/apache/bigtop/assets/11262916/ad29468d-810a-4fd0-847c-dc1e76d239b0)
   
   I using the **_/sbin/service_** cmd to replace **_systemctl_** method on 
phoenix in openEuler is ok, code is:
   ```
     class hbase_master_restart {
       if ($operatingsystem == 'openEuler'){
         exec { "hbase_master_restart":
           command => "/sbin/service hbase-master restart",
           path    => ['/usr/bin', '/bin','/sbin'],
           cwd     => '/tmp',
           timeout => 3000,
           require => [
           File['phoenix-server-lib'],
             Service['hbase-master'],
            ],
        }
       } else {
           exec { "hbase_master_restart":
             command => "systemctl restart hbase-master",
             path    => ['/usr/bin', '/bin'],
             cwd     => '/tmp',
             timeout => 3000,
             require => [
               File['phoenix-server-lib'],
               Service['hbase-master'],
             ],
           }
       }
     }
   
   ```
   The smoke test is ok:
   
![image](https://github.com/apache/bigtop/assets/11262916/b251adcb-4e7b-4456-b988-2915f2b51430)
   
   @guyuqi 
   


-- 
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]

Reply via email to