Coder Social home page Coder Social logo

Access is denied about frostdb HOT 4 CLOSED

dreamsxin avatar dreamsxin commented on June 16, 2024
Access is denied

from frostdb.

Comments (4)

metalmatze avatar metalmatze commented on June 16, 2024 1

The database itself should create that directory. No need to use os.Mkdir.

from frostdb.

dreamsxin avatar dreamsxin commented on June 16, 2024

The database itself should create that directory. No need to use os.Mkdir.

Thks, I will test it

from frostdb.

dreamsxin avatar dreamsxin commented on June 16, 2024

Same mistake panic: frostdb.New failed initializing meta DB: sync frostdb\databases\test\wal: Access is denied.

package main

import (
	"context"
	stdlog "log"

	"github.com/apache/arrow/go/v15/arrow"
	"github.com/apache/arrow/go/v15/arrow/memory"
	"github.com/thanos-io/objstore"

	"github.com/polarsignals/frostdb"
	"github.com/polarsignals/frostdb/dynparquet"
	"github.com/polarsignals/frostdb/query/logicalplan"
)

func main() {
	stdlog.SetFlags(stdlog.LstdFlags | stdlog.Lshortfile)
	stdlog.Print("I sure like pie")

	dir := "frostdb"
	bucket := objstore.NewInMemBucket()

	sinksource := frostdb.NewDefaultObjstoreBucket(bucket)

	// 创建 ColumnStore 对象
	c, err := frostdb.New(
		frostdb.WithWAL(),
		frostdb.WithStoragePath(dir),
		frostdb.WithReadWriteStorage(sinksource),
		frostdb.WithActiveMemorySize(100*frostdb.KiB),
	)
	if err != nil {
		stdlog.Panicln("frostdb.New", err)
	}

from frostdb.

thorfour avatar thorfour commented on June 16, 2024

I would check the permissions of the directory that the program is running in. It seems like the program doesn't have permissions to create a directory in the frostdb dir. This doesn't appear to be a FrostDB issue but a local permissions issue.

Alternatively you could update your test to perform a MkdirAll("frostdb\databases\test\wal", 0755)

from frostdb.

Related Issues (20)

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.