i made a data using python interpreter in zeppelin.
but, it has many rows and i want to download in own computer.
so i find a method in apache zeppelin page
https://zeppelin.apache.org/docs/latest/interpreter/python.html#sql-over-pandas-dataframes
after the read a page, i download pandas and pandasql library in a zeppelin server.
and i also follow the page which is next paragraph.
datas is python dataframe type.
%python.sql
select *from datas
but it has a error
python.sql interpreter not found
so , how i can a fix it??..
if you know a solution, plz tell me how
thanks a lot.
Which version of zeppelin do you use ? Please try to use the latest version (0.7.3)
You can print your dataframe as table by
print('%table ' + df.to_csv(sep='\t'))
Related
What I was trying to do?
I was trying to analyze data using ordinal logistic regression. For that, I tried to import OrderedModel from statsmodels.miscmodels.ordinal_model as suggested by this doc.
Then, what is the problem?
After execution of the above mentioned import statement, I got the following error.
No module named 'statsmodels.miscmodels.ordinal_model'
How did I try to solve the problem?
First of all, I checked the statsmodels version, I am using. I find that I am using the latest version (0.12.1), available in Anaconda. From this doc, I perceive that I will need to use 0.13.0.dev0 version to get the OrderedModel module, as in v0.12.1, there is no folder/file named OrderedModel. However, I do not find any way to update the statsmodels to 0.13.0.dev0 version.
Then, my question
How can I update statsmodels to 0.13.0.dev0 version so that I can use OrderedModel module?
Note: I know that in Python, there are some other ways to do ordinal logit regression. However, I want to use statsmodels due to it's nice summary of analysis.
Thanks in advance!
You can install a recent build from the nightly wheel repository hosted on Anaconda.org.
Run pip install -i https://pypi.anaconda.org/scipy-wheels-nightly/simple statsmodels.
It looks like you will need to compile from the GitHub. See prior related question here:
How to update to the developer version of statsmodels using Conda?
I am new to Moodle and the documented APIs are not helping me at all. Can someone please help me? I am trying to fetch data from the database and show it on screen.
Is there any tutorial or anything that can help me understand Moodle easily?
I am assuming what you want is a report generation tool. This will allow you to input a SQL query and get back a report of the results.
I would recommend going to this link and installing this plugin into your site. https://moodle.org/plugins/block_configurable_reports
Once you have that installed you can look over its documentation at this link. It should have everything you need to at least get started.
https://docs.moodle.org/37/en/Configurable_reports
I have recently started learning zeppelin. I know we can use angular and PostgreSQL e.t.c within it using interpreter. I have gone through its tutorial as well. But it is not as descriptive as I thought. I have many doubts which I am asking to you and which may help other beginners as well.
1> How we can create API for the zeppelin (if possible)?: As most of the client side apps uses API, is it possible to create API in zeppelin ? and in which language we can create API. If possible I am thinking to create API in java or node.js(JS).
2> Is it possible to integrate zeppelin graphs in any UI(angular or html ?)?
3> How we can deploy zeppelin based application in production environment ?
If you have any good tutorial source please attach it.
If I have asked unrelated questions please point out. I will change it.
Thanks in advance for provide help and giving you precious time!
Apache Zeppelin has wide and well described API [1]. You can use any language to work with API.
Yes [2]. You can embed the paragraph result to your website.
You can use binary package or built from source [3].
[4] contains a lot of code in setup section.
--
http://zeppelin.apache.org/docs/0.8.0/usage/rest_api/notebook.html
http://zeppelin.apache.org/docs/0.8.0/usage/other_features/publishing_paragraphs.html
http://zeppelin.apache.org/docs/0.8.0/quickstart/install.html
http://zeppelin.apache.org/docs/0.8.0/
I'm new to Apache solr and I want to index data from kafka into solr. Can anyone give simple example of doing this ?
The easiest way to get started on this would probably be to use Kafka Connect.
Connect is part of the apache Kafka package, so should already be installed on your Kakfa node(s). Please refer to the quickstart for a brief introduction on how to run connect.
For writing data to Solr there are two connectors that you could try:
https://github.com/jcustenborder/kafka-connect-solr
https://github.com/MSurendra/kafka-connect-solr
While I don't have any experience with either of them, I'd probably try Jeremy's first based on latest commit and the fact that he works for Confluent.
I'm running Apache Zeppelin on AWS EMR for the first time and I'm unable to see the errors after running code. The only thing I see is the status changes from Running to ERROR.
I have also checked the Hadoop Resource Manager and the logs do not contain any errors.
I would assume that Zeppelin should display the errors in the results window. Is this not the correct assumption?
The error should be displayed.
BTW What EMR version are you using?
I just tested Zeppelin Tutorial in EMR-5.2.0 and it's working well.
Zeppelin behaves like this when Spark and Hadoop are not running. Maybe it's simple as that.
We had the same issue with emr-5.0.3. This is a known bug. Switched to emr-5.2.0 and it is working fine
You can edit interpreter settings from the menu on the right top corner. Edit spark properties section to add zeppelin.spark.printREPLOutput as name and set its value to true.