イーグルカスタムアプリケーションテスト

イーグルテストのリファレンスドキュメントカスタムアプリケーションの
文書:https://eagle.apache.org/docs/latest/developing-application/

文書は、カスタム・アプリケーション・コードの構造、およびアプリケーションを介して、新たな設置場所やカールを記述する

1、新しいサイト:

  curl -H "Content-Type: application/json" -X POST  http://localhost:9090/rest/sites --data '{
       "siteId":"test_site",
       "siteName":"Test Site",
       "description":"This is a sample site for test",
       "context":{
            "type":"FAKE_CLUSTER",
            "url":"http://localhost:9090",
            "version":"2.6.4",
            "additional_attr":"Some information about the face cluster site"
       }
  }'

2.アプリケーションの追加

 curl -H "Content-Type: application/json" -X POST http://localhost:9090/rest/apps/install --data '{
       "siteId":"test_site",
       "appType":"EXAMPLE_APPLICATION",
       "mode":"LOCAL"
  }'

3、ページが代わりに正常に作成されたアプリケーションに存在します。


HDFS_AUDIT_LOG_MONITOR_APP成功を追加します。

curl -H "Content-Type: application/json" -X POST http://localhost:9090/rest/apps/install --data '{
       "siteId":"test_site",
       "appType":"HDFS_AUDIT_LOG_MONITOR_APP",
       "mode":"LOCAL"
  }'

4、サイトを削除するには、まずアプリケーションでサイトを削除する必要があります

curl -XDELETE http://localhost:9090/rest/sites/test_site

5、アプリケーションを削除します。

curl  -H "Content-Type: application/json"  -XDELETE http://localhost:9090/rest/apps/uninstall --data '{
 "uuid": "cce81cb9-2692-4405-b5c1-f395a95c5c29"
}'
注意: -H "Content-Type: application/json"  不能少,否则没效果

6、スタート

curl -H "Content-Type: application/json" –XPOST http://localhost:9090/rest/apps/start --data '{
     "uuid":"cce81cb9-2692-4405-b5c1-f395a95c5c29"
}'

7.停止

curl -H "Content-Type: application/json"  -XPOST http://localhost:9090/rest/apps/stop --data '{
 "uuid":"cce81cb9-2692-4405-b5c1-f395a95c5c29"
}'

 

 

おすすめ

転載: blog.csdn.net/zwahut/article/details/90603159