Coder Social home page Coder Social logo

ccdb-data-pipeline's People

Contributors

adamzarger avatar amymok avatar anselmbradford avatar ascott1 avatar contolini avatar flacoman91 avatar higs4281 avatar jeffreymfarley avatar marcesher avatar scotchester avatar sephcoster avatar virtix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ccdb-data-pipeline's Issues

Fill out INSTALL.md and link to it from the README

I'm trying to get up and running with the ccdb5-ui but am not certain the steps to get the data pipeline operational (which is a dependency to actually seeing the UI function). Would be over the ๐ŸŒ” if you could compile some installation instructions.

Current behavior

Boilerplate

Expected behavior

Detailed instructions on to install the project

`run_pipeline` fails when no index exists

Current behavior

Executing these steps:

> docker-compose up -d
> cd path/to/repo
> workon ccdb5
> python run_pipeline -c config.ini

results in this:

2017-09-18 12:44:09,090 - complaint - INFO - Creating Elasticsearch Connection
2017-09-18 12:44:09,091 - complaint - INFO - Testing to ensure Socrata index is stable or growing
Traceback (most recent call last):
  File "run_pipeline.py", line 104, in <module>
    main()
  File "run_pipeline.py", line 101, in main
    download_and_index(c)
  File "run_pipeline.py", line 84, in download_and_index
    test_index_growing(es, index_name)
  File "run_pipeline.py", line 49, in test_index_growing
    res = es.search(index=index_name, doc_type=DOC_TYPE_NAME)
  File "python2.7/site-packages/elasticsearch/client/utils.py", line 69, in _wrapped
    return func(*args, params=params, **kwargs)
  File "python2.7/site-packages/elasticsearch/client/__init__.py", line 548, in search
    doc_type, '_search'), params=params, body=body)
  File "python2.7/site-packages/elasticsearch/transport.py", line 329, in perform_request
    status, headers, data = connection.perform_request(method, url, params, body, ignore=ignore, timeout=timeout)
  File "python2.7/site-packages/elasticsearch/connection/http_urllib3.py", line 109, in perform_request
    self._raise_error(response.status, raw_data)
  File "python2.7/site-packages/elasticsearch/connection/base.py", line 108, in _raise_error
    raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, error_message, additional_info)
elasticsearch.exceptions.NotFoundError: TransportError(404, u'index_not_found_exception', u'no such index')

Expected behavior

It should fail quietly when no index has been established yet

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.