airlift | A self-hosted file upload and sharing service | File Sharing library
kandi X-RAY | airlift Summary
kandi X-RAY | airlift Summary
Airlift is a self-hosted file upload and sharing service. The clients upload files to the server and return a nice link for you to share. Just bring your own server and domain. :bomb: This is unstable software. It is not feature-complete and has lots of bugs. You should use deuiore/load.link instead of this if...
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- getFile retrieves a file from the cache
- Main entry point
- postConfig validates the config and sets the password .
- NewCache creates a new cache .
- makeZip creates a zip file upload .
- getHistoryPage returns the current history page for the history page .
- Config validates the host and port
- Load reads the configuration file and loads it from disk
- New returns a new cache .
- updatePassword updates a password
airlift Key Features
airlift Examples and Code Snippets
Community Discussions
Trending Discussions on airlift
QUESTION
if I want to build my Quarkus 2.7.3.Final application with GraalVM CE 22.0.0.2 in native mode, I get a build error caused by the PrestoDB JDBC driver.
Also, I get the following exceptions when I make a SQL query on PrestoDB 0.270 and it only occurs if I run the application in native mode.
With the Quarkus JVM mode, the query just works fine.
Docker build image: quay.io/quarkus/ubi-quarkus-native-image:22.0.0-java17
I'm using JDBC driver com.facebook.presto:presto-jdbc:0.270 with a custom agroal connection and driver class com.facebook.presto.jdbc.PrestoDriver
GraalVM build error:
...ANSWER
Answered 2022-Mar-04 at 15:17To fix the GraalVM native build error add the following properties quarkus.native.additional-build-args and quarkus.native.add-all-charsets to src/main/resources/application.properties
(standard Quarkus properties):
QUESTION
In my application config i have defined the following properties:
...ANSWER
Answered 2022-Feb-16 at 13:12Acording to this answer: https://stackoverflow.com/a/51236918/16651073 tomcat falls back to default logging if it can resolve the location
Can you try to save the properties without the spaces.
Like this:
logging.file.name=application.logs
QUESTION
I am using IntelliJ code style format definition published at https://github.com/airlift/codestyle/blob/f20834967969cdafce461ee203788e567f842e1e/IntelliJIdea2019/Airlift.xml
IntelliJ 2020.3.4 (and I think all previous versions I used) would format single line throwing lambda like this
...ANSWER
Answered 2021-Nov-11 at 09:47In the Code Style settings, go to the "Spaces" tab and find "Within -> Code Braces". Turn it on.
Or if you want to edit the code style XML directly, you can add:
QUESTION
I added a load balancer to proxy https requests to EMR (6.2.0) - prestosql 343. I added the following in config.properties.
...ANSWER
Answered 2021-Apr-08 at 11:49This part of source code https://github.com/trinodb/trino/blob/343/presto-main/src/main/java/io/prestosql/server/security/PasswordAuthenticatorManager.java#L62-L84 loads the config.
So search for -- Loading password authenticator --
in log that should give you more information regarding what could have gone wrong.
Check if file contents are loaded properly or not, sometime that is also the cause for the error.
QUESTION
I try to make trino cluster with 2 nodes (1 coordinator, 1 worker) I am using docker trinodb/trino image and changed its etc/[files] with the following config.properties. coordinator config:
...ANSWER
Answered 2021-Mar-10 at 13:27The problem was node.properties and its node.id. Each server needs a unique node.id
QUESTION
my presto version is 0.240 my operation: i want to use ssl for use https in presto so i change my config refer only by this url: https://trino.io/docs/current/security/internal-communication.html but i can't Access to the presto address https://192.168.100.142:9999/ I don't know which step I did wrong. What should I do to implement HTTPS for Presto?
this is my config: A cluster of two machines
node 1 142 hostname:sbider-dev-01 /opt/presto-server-0.240/etc/config.properties
...ANSWER
Answered 2021-Jan-15 at 12:29You're following Trino (fka Presto SQL) documentation for securing internal documentation, but got Presto binary from facebook's fork of the project (prestodb).
Go to https://trino.io/download.html to get latest Trino release.
The alternative solution (using prestodb's documentation and prestodb's binary) is NOT a safe, viable alternative, due to security issues known and not fixed in prestodb code base.
QUESTION
I'm working with data in AWS Athena, and I'm trying to match the structure of some input data. This involves a nested structure where "from" is a key. This consistently throws errors.
I've narrowed the issue down to the fact that Athena queries don't work when you try to use reserved keywords as keys in rows. The following examples demonstrate this behavior.
This simple case,
SELECT CAST(ROW(1) AS ROW("from" INTEGER))
, fails with the following error:GENERIC_INTERNAL_ERROR: Unable to create class com.facebook.presto.execution.TaskInfo from JSON response: [io.airlift.jaxrs.JsonMapperParsingException: Invalid json for Java type
This simple case runs successfully:
SELECT CAST(ROW(1) AS ROW("work" INTEGER))
The Athena documentation says to enclose reserved keywords in double quotes to use them in SELECT statements, but the examples above show that queries still fail when using keywords as keys in rows.
I know I have other options, but this way is by far the most convenient. Is there a way to use reserved keywords in this scenario?
...ANSWER
Answered 2020-Oct-16 at 11:08As Piotr mentions in a comment, this is a Presto bug and given that it was posted just days ago it's unlikely to be fixed in Athena anytime soon. When the bug is fixed in Presto it might find its way into Athena, I know the Athena team sometimes apply upstream patches even though Athena is based on an old version of Presto. This one might not be significant enough to appear on their radar, but if you open a support ticket with AWS it might happen (be sure to be clear that you don't need any workaround just report a bug, otherwise you'll have a support person spending way too much time trying to help you to turn things off and on again).
QUESTION
I am trying to run simplest query. However it is not working.
...ANSWER
Answered 2020-Feb-07 at 17:27Try the same without semicolon ;
or shield semicolon with \
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install airlift
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page