已经做了一些搜索无济于事。尝试使用 Elasticsearch docker 容器设置项目。可以在我较旧的英特尔 MacBook 上运行,但到目前为止在新系统上没有运气。
{this.isActiveField('postText') && (
<Fieldset className="mt2">
<PostEditor
id="postText"
onChange={this.onChange}
value={postText}
/>
<Snackbar
anchorOrigin={{
vertical: 'bottom',
horizontal: 'left',
}}
open={!!ErrorHandling.getFieldErrors(errors, 'postText')}
autoHideDuration={4000}
onClose={this.handleClose}
ContentProps={{
'aria-describedby': 'message-id',
}}
message={<span id="message-id">{ErrorHandling.getFieldErrors(errors, 'postText')}</span>}
action={[
<IconButton
key="close"
aria-label="Close"
color="inherit"
className={classes.close}
onClick={this.handleClose}
>
<CloseIcon />
</IconButton>,
]}
/>
</Fieldset>
)}
非常感谢任何帮助或指出正确的方向!
答案 0 :(得分:6)
使用来自 dockerhub 的图像也遇到了这个问题,但现在使用 official docker build from Elastic 似乎可以在我的 M1 Mac 上正常工作。
docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.10.2