<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Can't Delete Saved Queries in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Can-t-Delete-Saved-Queries/m-p/176423#M138673</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/44374/danielthomas.html" nodeid="44374"&gt;@Daniel Thomas&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You will need to enable the DEBUG log inside the view specific log4j properties like following to see the savedQuery deletion logging.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;BR /&gt;1. Edit the following file and change the following entry from INFO to DEBUG as following:&lt;/P&gt;&lt;PRE&gt;# grep DEBUG /var/lib/ambari-server/resources/views/work/HIVE\{2.0.0\}/view.log4j.properties
log4j.logger.org.apache.ambari.view.hive20=DEBUG,hive20&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;2. Restart ambari-server and the try deleting saved query.&lt;/P&gt;&lt;PRE&gt;# ambari-server restart
# curl -H "X-Requested-By: ambari" -u admin:admin -X DELETE &lt;A href="http://localhost:8080/api/v1/views/HIVE/versions/2.0.0/instances/AUTO_HIVE20_INSTANCE/savedQueries/1" target="_blank"&gt;http://localhost:8080/api/v1/views/HIVE/versions/2.0.0/instances/AUTO_HIVE20_INSTANCE/savedQueries/1&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;3. Now review the following log.&lt;/P&gt;&lt;PRE&gt;30 Oct 2017 19:17:54,800 DEBUG [ambari-client-thread-26] [HIVE 2.0.0 AUTO_HIVE20_INSTANCE] DataStoreStorage:123 - Deleting org.apache.ambari.view.hive20.resources.savedQueries.SavedQuery:1&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Here in the above logging we see that the saved Query with ID =1 is deleted.&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/44374/danielthomas.html" nodeid="44374"&gt;&lt;/A&gt; &lt;/P&gt;</description>
    <pubDate>Tue, 31 Oct 2017 02:21:15 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2017-10-31T02:21:15Z</dc:date>
  </channel>
</rss>

