<jupyter_start><jupyter_text>Impala/HDFS intro and Setup  Getting started You're going to want to make sure you can import `ibis`<jupyter_code>import ibis
import os<jupyter_output><empty_output><jupyter_text>If you have WebHDFS available, connect to HDFS with according to your WebHDFS config. For kerberized or more complex HDFS clusters please look at http://hdfscli.readthedocs.org/en/latest/ for info on connecting. You can use a connection from that library instead of using `hdfs_connect`<jupyter_code>hdfs_port = os.environ.get('IBIS_WEBHDFS_PORT', 50070)
hdfs = ibis.hdfs_connect(host='impala', port=hdfs_port)<jupyter_output><empty_output><jupyter_text>Finally, create the Ibis client<jupyter_code>con = ibis.impala.connect('impala', hdfs_client=hdfs)
con<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08816120906801007, 'fraction_numerical': 0.006297229219143577, 'mean_word_length': 7.736263736263736, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '308990', 'license': 'Apache-2.0', 'n_tokens_mistral': 287, 'n_tokens_neox': 273, 'n_words': 72, 'path': 'docs/source/notebooks/tutorial/01-Intro-and-Setup.ipynb', 'repo_name': 'vnlitvinov/ibis', 'size': '794'}