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

   > > 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://user-images.githubusercontent.com/11262916/255546679-ad29468d-810a-4fd0-847c-dc1e76d239b0.png)
   > > 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://user-images.githubusercontent.com/11262916/255548419-b251adcb-4e7b-4456-b988-2915f2b51430.png)
   > > @guyuqi
   > 
   > May I ask what's systemd version on openEuler? `/usr/bin/systemctl 
--version`
   
   The version of systemctl is v249. @guyuqi 
   
![image](https://github.com/apache/bigtop/assets/11262916/f7e095c1-81fa-4169-94e9-40f1203f3c9c)
   
   


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