{"action":"created","issue":{"url":"https://api.github.com/repos/distributed-system-analysis/py-es-bulk/issues/3","repository_url":"https://api.github.com/repos/distributed-system-analysis/py-es-bulk","labels_url":"https://api.github.com/repos/distributed-system-analysis/py-es-bulk/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/distributed-system-analysis/py-es-bulk/issues/3/comments","events_url":"https://api.github.com/repos/distributed-system-analysis/py-es-bulk/issues/3/events","html_url":"https://github.com/distributed-system-analysis/py-es-bulk/issues/3","id":360535607,"node_id":"MDU6SXNzdWUzNjA1MzU2MDc=","number":3,"title":"Support multiple Elasticsearch versions","user":{"login":"portante","id":949097,"node_id":"MDQ6VXNlcjk0OTA5Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/949097?v=4","gravatar_id":"","url":"https://api.github.com/users/portante","html_url":"https://github.com/portante","followers_url":"https://api.github.com/users/portante/followers","following_url":"https://api.github.com/users/portante/following{/other_user}","gists_url":"https://api.github.com/users/portante/gists{/gist_id}","starred_url":"https://api.github.com/users/portante/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/portante/subscriptions","organizations_url":"https://api.github.com/users/portante/orgs","repos_url":"https://api.github.com/users/portante/repos","events_url":"https://api.github.com/users/portante/events{/privacy}","received_events_url":"https://api.github.com/users/portante/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-15T12:25:58Z","updated_at":"2018-09-15T12:26:28Z","closed_at":null,"author_association":"MEMBER","body":"(See original issue at: https://github.com/distributed-system-analysis/pbench/issues/816)\r\n\r\nVarious distributions handle python versions in their own way, but python packages are available via pip for 3.x as:\r\n\r\n * [elasticsearch1](https://pypi.org/project/elasticsearch1/)\r\n * [elasticsearch2](https://pypi.org/project/elasticsearch2/)\r\n * [elasticsearch5](https://pypi.org/project/elasticsearch5/)\r\n * [elasticsearch](https://pypi.org/project/elasticsearch/)\r\n\r\nIn our internal to Red Hat environment, we are currently stuck on Elasticsearch V1, but will be migrating to V5 soon.\r\n\r\nIt would be great to support these various versions since they are so localized."},"comment":{"url":"https://api.github.com/repos/distributed-system-analysis/py-es-bulk/issues/comments/421562235","html_url":"https://github.com/distributed-system-analysis/py-es-bulk/issues/3#issuecomment-421562235","issue_url":"https://api.github.com/repos/distributed-system-analysis/py-es-bulk/issues/3","id":421562235,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTU2MjIzNQ==","user":{"login":"portante","id":949097,"node_id":"MDQ6VXNlcjk0OTA5Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/949097?v=4","gravatar_id":"","url":"https://api.github.com/users/portante","html_url":"https://github.com/portante","followers_url":"https://api.github.com/users/portante/followers","following_url":"https://api.github.com/users/portante/following{/other_user}","gists_url":"https://api.github.com/users/portante/gists{/gist_id}","starred_url":"https://api.github.com/users/portante/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/portante/subscriptions","organizations_url":"https://api.github.com/users/portante/orgs","repos_url":"https://api.github.com/users/portante/repos","events_url":"https://api.github.com/users/portante/events{/privacy}","received_events_url":"https://api.github.com/users/portante/received_events","type":"User","site_admin":false},"created_at":"2018-09-15T12:26:28Z","updated_at":"2018-09-15T12:26:28Z","author_association":"MEMBER","body":"For example, on a RHEL 7 box, where we don't have python 3 easily available to us, I had to enable the Red Hat SCL (Software Collections Library), and then install the `rh-python36` RPM:\r\n\r\n```\r\n# subscription-manager repos --enable=rhel-server-rhscl-7-rpms\r\n# yum install -y rh-python36\r\n```\r\n\r\nAnd then, use pip install to add all the elasticsearch library versions:\r\n\r\n```\r\n$ scl enable rh-python36 bash\r\nrh-python36$ pip install elasticsearch1\r\nrh-python36$ pip install elasticsearch2\r\nrh-python36$ pip install elasticsearch5\r\nrh-python36$ pip install elasticsearch\r\n```\r\n\r\nWith that, the code is now still importing `elasticsearch` as the python module, which means we are going to be using the V6 client.  If the target version of the Elasticsearch is a V5 instance, we ought to consider using that version for our client, `index-pbench`, instead."}}
{"actor":{"display_login":"portante"}}