[ 
https://issues.apache.org/jira/browse/AMBARI-18846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nahappan Somasundaram reopened AMBARI-18846:
--------------------------------------------

Compilation failure. In resourceFilesKeeper.py line 160. Build failing with:

[INFO]
[INFO] --- exec-maven-plugin:1.2.1:exec (generate-hash-files) @ ambari-agent ---
Traceback (most recent call last):
  File "../ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py", 
line 291, in <module>
    main(sys.argv)
  File "../ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py", 
line 287, in main
    resource_files_keeper.perform_housekeeping()
  File "../ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py", 
line 72, in perform_housekeeping
    self.update_directory_archives()
  File "../ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py", 
line 117, in update_directory_archives
    self._update_resources_subdir_archive(self.DASHBOARDS_DIR)
  File "../ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py", 
line 89, in _update_resources_subdir_archive
    self.update_directory_archive(archive_root)
  File "../ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py", 
line 160, in update_directory_archive
    if (skip_empty_directory and not os.listdir(directory)):
OSError: [Errno 2] No such file or directory: 
'ambari-agent/target/cache/dashboards'

> Custom services should be able to easily specify their own dashboards
> ---------------------------------------------------------------------
>
>                 Key: AMBARI-18846
>                 URL: https://issues.apache.org/jira/browse/AMBARI-18846
>             Project: Ambari
>          Issue Type: Improvement
>          Components: ambari-admin, ambari-metrics, ambari-server
>    Affects Versions: trunk, 2.4.0, 2.5.0
>            Reporter: Tim Thorpe
>            Assignee: Tim Thorpe
>             Fix For: trunk, 2.5.0
>
>         Attachments: AMBARI-18846.patch
>
>
>  Currently all dashboards are added directly in under the AMBARI_METRICS 
> package directory (package/files/grafana-dashboards).
> In order for custom services to add dashboards, they need to add the files 
> directly under that folder.  Each time the Ambari server is upgraded, those 
> files will be lost as the AMBARI_METRICS service definition will be replaced.
> This JIRA proposes adding a new directory under the ambari-server/resources.  
> This will contain both the dashboards and metrics for custom services.  
> The dashboards here will not be organized by stack.  Each service will add a 
> directory containing their dashboards and will add a metrics file.
> resources/dashboards/grafana-dashboards/MY_SERVICE/<dashboards>
> resources/dashboards/service-metrics/MY_SERVICE.txt
> The resources/dashboards directory will need to get sync'd to the agents.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to