Tag Archives: Big data learning

ElasticSearch Create Index Error: mapper_parsing_exception Root mapping definition has unsupported parameters

elasticsearch version number: 5.6.14. This error has something to do with the ES version. You’d better explain the version number first so that some readers will not be invalid after operating according to my method

error mapping statement 1:

{
    "test_0904": {
        "mappings": {
            "user": {
                "properties": {
                    "birthday": {
                        "type": "date",
                        "store": true
                    },
                    "hobby": {
                        "type": "text",
                        "store": true
                    },
                    "id": {
                        "type": "long",
                        "store": true
                    },
                    "name": {
                        "type": "text",
                        "store": true
                    }
                }
            }
        }
    }
}

error mapping statement 2:

{
    "mappings": {
        "user": {
            "properties": {
                "birthday": {
                    "type": "date",
                    "store": true
                },
                "hobby": {
                    "type": "text",
                    "store": true
                },
                "id": {
                    "type": "long",
                    "store": true
                },
                "name": {
                    "type": "text",
                    "store": true
                }
            }
        }
    }
}

modified mapping statement:

{
    "properties": {
        "birthday": {
            "type": "date",
            "store": true
        },
        "hobby": {
            "type": "text",
            "store": true
        },
        "id": {
            "type": "long",
            "store": true
        },
        "name": {
            "type": "text",
            "store": true
        }
    }
}

To sum up, there are some differences in the structure of mapping statements supported by various versions of ES. Different versions have different statement writing methods. Some versions of parameters support and some versions do not support.

“Failed to create interpreter” appears when pychar creates a new project

In creating the project, using the base(python=3.7) that comes with Anaconda can be created normally, but using my own environment (envs/python37/python=3.7), the following problem arises: D:\Program Files\JetBrains\Pycharm 2018.3.5\helper\packaging_tools.py list Error :Permission denied Command output

~ after nearly a week of torture, I also found some comments on Google, which is still a lot of resources on Google (portal). Generally speaking, it should be related to Anaconda’s own BUG, which is not compatible with Pycharm (maybe I have not found the relevant explanation yet)

here is my solution :

method 1 :

build environment by conda directly (not through Vartualenv to build virtual environment), managed by conda’s real environment as project environment, the disadvantages of doing so is that all use the same environment projects can see kit has no personalization is the same, and for any changes in the environment will have an effect on other projects, the safety factor is not high, but this method the effect is very good.

method 2 :

the environment is created in pythonw.exe, still using the virtual environment, but without Windows (the specific pythonw.exe difference is visible from the portal)

======================================2019-11-28_Edit_log=========================================

for the previous scheme can not solve the problem, I found a new method today, you can try

if you need

because the permission denial only occurs in python3’s Anaconda managed version so I’ll use this as an example of

is the same as before, the normal way of creating it, it will report an error

>

>

>

>

>

the steps are as follows :

1. Settings – & gt;

find project interpreter add location

2. Click to add the interpreter for python3, or if python3 does not have an interpreter, click show all to add the interpreter

3. Finally, click “apply ok”, and we can see the required version interpreter and virtual environment in the project

above is some of my experience summary, hope to be helpful to friends