<?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: Oryx: API method unavailable until model has been built and loaded in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/5895#M1007</link>
    <description>&lt;P&gt;/refresh can't throw a 503 error, at least, I can't see any way for it to do so. Are you sure you are not calling /ready?&lt;/P&gt;&lt;P&gt;Can you please provide logs that are printed after calling /refresh? or really, all your logs. You can mail them directly to me if you like at sowen @ cloudera&lt;/P&gt;</description>
    <pubDate>Sat, 08 Feb 2014 12:45:27 GMT</pubDate>
    <dc:creator>srowen</dc:creator>
    <dc:date>2014-02-08T12:45:27Z</dc:date>
    <item>
      <title>Oryx: API method unavailable until model has been built and loaded</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/5675#M1000</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I start computation &amp;amp; serving layer, and setup in collaborative filtering as desribed in Cloudera example&lt;/P&gt;&lt;P&gt;model=${als-model}&lt;BR /&gt;model.instance-dir=/tmp/oryx/example&lt;BR /&gt;model.local-computation=true&lt;BR /&gt;model.local-data=true&lt;BR /&gt;model.features=25&lt;BR /&gt;model.lambda=0.065&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- l start calling /pref API to add some data (e.g.: /pref/user1/xxxx), and thus many time in order to get some data in Oryx.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Therefore, each time I call /recommend/user1, I got 503 error, "com.cloudera.oryx.als.common.NotReadyException: API method unavailable until model has been built and loaded"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So does I miss something ?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: the servers are working corretly with the sample data (audioscrobbler), but my error occurs on a fresh new install starting from 0.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 13:02:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/5675#M1000</guid>
      <dc:creator>verytest</dc:creator>
      <dc:date>2014-02-05T13:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Oryx: API method unavailable until model has been built and loaded</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/5679#M1001</link>
      <description>&lt;P&gt;That's right. Until the model is created, there is nothing with which to answer queries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The default behavior is to wait until a certain amount of data has been written, and the build or rebuild the model. You can configure this.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But I would suggest you can simply force it when you are ready by calling /refresh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Usually you would probably have some historical data to learn from before you launch. That would have been fed in, and created a model, before you would start querying it.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 13:47:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/5679#M1001</guid>
      <dc:creator>srowen</dc:creator>
      <dc:date>2014-02-05T13:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Oryx: API method unavailable until model has been built and loaded</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/5681#M1002</link>
      <description>&lt;P&gt;Thanks you srowen !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok i understand, therefore how I know:&lt;/P&gt;&lt;P&gt;- the actual amount of data that has been written&lt;/P&gt;&lt;P&gt;- the exact amount of data from which the model will be rebuilt ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I have to manually call &amp;nbsp;/refresh or it is done automatilcally ? If so, at which frequency ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 13:53:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/5681#M1002</guid>
      <dc:creator>verytest</dc:creator>
      <dc:date>2014-02-05T13:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Oryx: API method unavailable until model has been built and loaded</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/5685#M1003</link>
      <description>&lt;P&gt;I would simply call /refresh after you have ingested whatever data you have already. It sounds like you want it to just start with what data it has at a certain point, and that is part of what /refresh does. After that, let it rebuild automatically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The properties are model.time-threshold and model.data-threshold. These are measured in minutes, and megabytes. A rebuild happens when either threshold is exceeded -- time elapsed, data written.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, I misspoke; these default to -1, meaning, do not use a threshold. By default it would not rebuild except on demand. So you should set at least one of these to match your requirements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, note that if you start the Computation Layer and there is&amp;nbsp;&lt;EM&gt;no&lt;/EM&gt;&amp;nbsp;model, and the first generation has&amp;nbsp;&lt;EM&gt;any&lt;/EM&gt; data, it will force itself to run. So you could also simply stuff your data in the generation 00000/inbound dir ahead of time.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 13:57:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/5685#M1003</guid>
      <dc:creator>srowen</dc:creator>
      <dc:date>2014-02-05T13:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Oryx: API method unavailable until model has been built and loaded</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/5887#M1004</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;A few days later, it is still in same mode, so no recommendation are generated even by my often call /pref/x/y&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was using just before Myrrix in same context and it is was working. Instead of having one Myrix instance, I have 2 instances (computation &amp;amp; serving), but the apps using it is the same (calling serving layer on same port with same APIs)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have doubt. How I check there is data stored in Oryx each time I call the serving layer. I see in "EndPoint stats", that the&amp;nbsp;&lt;SPAN&gt;RecommendServlet is correctly called without error, but how to be sure the data is stored and ready for recommendation computation ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2014 12:22:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/5887#M1004</guid>
      <dc:creator>verytest</dc:creator>
      <dc:date>2014-02-08T12:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Oryx: API method unavailable until model has been built and loaded</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/5889#M1005</link>
      <description>&lt;P&gt;See my previous message. Did you ever call /refresh? or set a threshold that you have definitelye exceeded? A model won't get built otherwise. The behavior is different, yes.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2014 12:38:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/5889#M1005</guid>
      <dc:creator>srowen</dc:creator>
      <dc:date>2014-02-08T12:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Oryx: API method unavailable until model has been built and loaded</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/5893#M1006</link>
      <description>&lt;P&gt;Yes even with the /refresh, the /recommend/X says 503 error&lt;/P&gt;&lt;P&gt;But now I have configure as you mention a&amp;nbsp;model.time-threshold = 5 to make it doing every 5mn.&lt;/P&gt;&lt;P&gt;But I still get the 503 error&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2014 12:42:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/5893#M1006</guid>
      <dc:creator>verytest</dc:creator>
      <dc:date>2014-02-08T12:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Oryx: API method unavailable until model has been built and loaded</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/5895#M1007</link>
      <description>&lt;P&gt;/refresh can't throw a 503 error, at least, I can't see any way for it to do so. Are you sure you are not calling /ready?&lt;/P&gt;&lt;P&gt;Can you please provide logs that are printed after calling /refresh? or really, all your logs. You can mail them directly to me if you like at sowen @ cloudera&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2014 12:45:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/5895#M1007</guid>
      <dc:creator>srowen</dc:creator>
      <dc:date>2014-02-08T12:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Oryx: API method unavailable until model has been built and loaded</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/5897#M1008</link>
      <description>&lt;P&gt;OK, the problem turned out to be that the # of features was too high for the tiny amount of data. The model was being built but rejected. It does log a message to this effect when this happens.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2014 13:00:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/5897#M1008</guid>
      <dc:creator>srowen</dc:creator>
      <dc:date>2014-02-08T13:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Oryx: API method unavailable until model has been built and loaded</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/5915#M1009</link>
      <description>&lt;P&gt;FYI, it is working now !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One more question, I can get N recommendations by calling /recommend/X with&amp;nbsp;howMany parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any performence issue for Oryx if I call for&amp;nbsp;howMany=10 or&amp;nbsp;howMany=1000 ? It is already computed so Oryx is just providing the data as it (not computing again) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Feb 2014 12:23:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/5915#M1009</guid>
      <dc:creator>verytest</dc:creator>
      <dc:date>2014-02-09T12:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Oryx: API method unavailable until model has been built and loaded</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/5919#M1010</link>
      <description>This is good. There is no performance difference between computing 10 and 100 recommendations since it still considers all non-filtered items each time. (OK I suppose it takes a tiny bit longer to send 100 results over the network than 10.) The results are not precomputed but computed on the fly each time.</description>
      <pubDate>Sun, 09 Feb 2014 14:28:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/5919#M1010</guid>
      <dc:creator>srowen</dc:creator>
      <dc:date>2014-02-09T14:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Oryx: API method unavailable until model has been built and loaded</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/28529#M1011</link>
      <description>Hello&lt;BR /&gt;where can I find this "model.time-threshold" &amp;amp; " model.data-threshold" ? they are not in the config file...so I dot know where to find them&lt;BR /&gt;thanx</description>
      <pubDate>Sun, 14 Jun 2015 19:29:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/28529#M1011</guid>
      <dc:creator>katia</dc:creator>
      <dc:date>2015-06-14T19:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Oryx: API method unavailable until model has been built and loaded</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/28530#M1012</link>
      <description>&lt;P&gt;This concerns version 1.x by the way. The config elements in question are here: &lt;A target="_blank" href="https://github.com/cloudera/oryx/blob/master/common/src/main/resources/reference.conf#L136"&gt;https://github.com/cloudera/oryx/blob/master/common/src/main/resources/reference.conf#L136&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jun 2015 19:45:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oryx-API-method-unavailable-until-model-has-been-built-and/m-p/28530#M1012</guid>
      <dc:creator>srowen</dc:creator>
      <dc:date>2015-06-14T19:45:52Z</dc:date>
    </item>
  </channel>
</rss>

