<?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: Invalid period specified: Problem using Navigator API, Audit in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Invalid-period-specified-Problem-using-Navigator-API-Audit/m-p/51030#M54662</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/20809"&gt;@Rachel&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try adding quotation marks around your URL. &amp;nbsp;I think the shell is interpretting and is messing up the string that is sent. &amp;nbsp;To debug curl and see the problem with the URL that is sent to Navigator, add the "-v" option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2017 18:59:25 GMT</pubDate>
    <dc:creator>bgooley</dc:creator>
    <dc:date>2017-02-16T18:59:25Z</dc:date>
    <item>
      <title>Invalid period specified: Problem using Navigator API, Audit</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Invalid-period-specified-Problem-using-Navigator-API-Audit/m-p/51029#M54661</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having problems using the Navigator API for audits. I'm using this documentation as a reference for how I should write the curl, when using version V9.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;curl http://Navigator_Metadata_Server_host:port/api/v9/audits/?query=service%3D%3Dhive&amp;amp;startTime=1431025200000&amp;amp;endTime=1431032400000\
&amp;amp;limit=5&amp;amp;offset=0&amp;amp;format=JSON&amp;amp;attachment=false -X GET -u username:password&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is my resulting query:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;curl -X GET -u user:pass https://our_navigator_metdata_server:7187/api/v9/audits/?query=service%3D%3Dhive&amp;amp;startTime=1487160000000&amp;amp;endTime=1487163600000&amp;amp;limit=5&amp;amp;offset=0&amp;amp;format=JSON&amp;amp;attachment=true&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Result:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;No matter how large a distance I make between start- and endTime I end up getting the same error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp; "message" : "Invalid period specified: 'endTime' must be later than 'startTime'."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I have verified that the address and port that I'm using is correct&lt;/P&gt;&lt;P&gt;- I have verified that my startTime is less than endTime&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can anybody see what is wrong here, or knows why it keeps returning the same error message?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for helping me out,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Rachel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 18:48:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Invalid-period-specified-Problem-using-Navigator-API-Audit/m-p/51029#M54661</guid>
      <dc:creator>Rachel</dc:creator>
      <dc:date>2017-02-16T18:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid period specified: Problem using Navigator API, Audit</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Invalid-period-specified-Problem-using-Navigator-API-Audit/m-p/51030#M54662</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/20809"&gt;@Rachel&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try adding quotation marks around your URL. &amp;nbsp;I think the shell is interpretting and is messing up the string that is sent. &amp;nbsp;To debug curl and see the problem with the URL that is sent to Navigator, add the "-v" option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 18:59:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Invalid-period-specified-Problem-using-Navigator-API-Audit/m-p/51030#M54662</guid>
      <dc:creator>bgooley</dc:creator>
      <dc:date>2017-02-16T18:59:25Z</dc:date>
    </item>
  </channel>
</rss>

