Post Syndicated from turnoff.us original http://turnoff.us/geek/linux-free-command/
Yearly Archives: 2024
[$] LWN.net Weekly Edition for February 22, 2024
Post Syndicated from corbet original https://lwn.net/Articles/962302/
The LWN.net Weekly Edition for February 22, 2024 is available.
NEW! USW-Ultra PoE switch #unifi #shorts #crosstalk
Post Syndicated from Crosstalk Solutions original https://www.youtube.com/watch?v=BHtllt3a-lw
NVIDIA Blows-out Earnings as Over 83 Percent of Revenue From the AI Data Center Boom
Post Syndicated from Patrick Kennedy original https://www.servethehome.com/nvidia-blows-out-earnings-as-over-83-percent-of-revenue-from-the-ai-data-center-boom/
NVIDIA is putting its gaming GPU company legacy to rest as the data center group is propelling the company on a wild growth trajectory
The post NVIDIA Blows-out Earnings as Over 83 Percent of Revenue From the AI Data Center Boom appeared first on ServeTheHome.
On-device wake word is here! Demonstrating microWakeWord on the ESP32-S3-BOX-3 in Home Assistant.
Post Syndicated from Home Assistant original https://www.youtube.com/watch?v=oSKBWtBJyDE
Simplify data streaming ingestion for analytics using Amazon MSK and Amazon Redshift
Post Syndicated from Sebastian Vlad original https://aws.amazon.com/blogs/big-data/simplify-data-streaming-ingestion-for-analytics-using-amazon-msk-and-amazon-redshift/
Towards the end of 2022, AWS announced the general availability of real-time streaming ingestion to Amazon Redshift for Amazon Kinesis Data Streams and Amazon Managed Streaming for Apache Kafka (Amazon MSK), eliminating the need to stage streaming data in Amazon Simple Storage Service (Amazon S3) before ingesting it into Amazon Redshift.
Streaming ingestion from Amazon MSK into Amazon Redshift, represents a cutting-edge approach to real-time data processing and analysis. Amazon MSK serves as a highly scalable, and fully managed service for Apache Kafka, allowing for seamless collection and processing of vast streams of data. Integrating streaming data into Amazon Redshift brings immense value by enabling organizations to harness the potential of real-time analytics and data-driven decision-making.
This integration enables you to achieve low latency, measured in seconds, while ingesting hundreds of megabytes of streaming data per second into Amazon Redshift. At the same time, this integration helps make sure that the most up-to-date information is readily available for analysis. Because the integration doesn’t require staging data in Amazon S3, Amazon Redshift can ingest streaming data at a lower latency and without intermediary storage cost.
You can configure Amazon Redshift streaming ingestion on a Redshift cluster using SQL statements to authenticate and connect to an MSK topic. This solution is an excellent option for data engineers that are looking to simplify data pipelines and reduce the operational cost.
In this post, we provide a complete overview on how to configure Amazon Redshift streaming ingestion from Amazon MSK.
Solution overview
The following architecture diagram describes the AWS services and features you will be using.

The workflow includes the following steps:
- You start with configuring an Amazon MSK Connect source connector, to create an MSK topic, generate mock data, and write it to the MSK topic. For this post, we work with mock customer data.
- The next step is to connect to a Redshift cluster using the Query Editor v2.
- Finally, you configure an external schema and create a materialized view in Amazon Redshift, to consume the data from the MSK topic. This solution does not rely on an MSK Connect sink connector to export the data from Amazon MSK to Amazon Redshift.
The following solution architecture diagram describes in more detail the configuration and integration of the AWS services you will be using.

The workflow includes the following steps:
- You deploy an MSK Connect source connector, an MSK cluster, and a Redshift cluster within the private subnets on a VPC.
- The MSK Connect source connector uses granular permissions defined in an AWS Identity and Access Management (IAM) in-line policy attached to an IAM role, which allows the source connector to perform actions on the MSK cluster.
- The MSK Connect source connector logs are captured and sent to an Amazon CloudWatch log group.
- The MSK cluster uses a custom MSK cluster configuration, allowing the MSK Connect connector to create topics on the MSK cluster.
- The MSK cluster logs are captured and sent to an Amazon CloudWatch log group.
- The Redshift cluster uses granular permissions defined in an IAM in-line policy attached to an IAM role, which allows the Redshift cluster to perform actions on the MSK cluster.
- You can use the Query Editor v2 to connect to the Redshift cluster.
Prerequisites
To simplify the provisioning and configuration of the prerequisite resources, you can use the following AWS CloudFormation template:
Complete the following steps when launching the stack:
- For Stack name, enter a meaningful name for the stack, for example,
prerequisites. - Choose Next.
- Choose Next.
- Select I acknowledge that AWS CloudFormation might create IAM resources with custom names.
- Choose Submit.
The CloudFormation stack creates the following resources:
- A VPC
custom-vpc, created across three Availability Zones, with three public subnets and three private subnets:- The public subnets are associated with a public route table, and outbound traffic is directed to an internet gateway.
- The private subnets are associated with a private route table, and outbound traffic is sent to a NAT gateway.
- An internet gateway attached to the Amazon VPC.
- A NAT gateway that is associated with an elastic IP and is deployed in one of the public subnets.
- Three security groups:
msk-connect-sg, which will be later associated with the MSK Connect connector.redshift-sg, which will be later associated with the Redshift cluster.msk-cluster-sg, which will be later associated with the MSK cluster. It allows inbound traffic frommsk-connect-sg, andredshift-sg.
- Two CloudWatch log groups:
msk-connect-logs, to be used for the MSK Connect logs.msk-cluster-logs, to be used for the MSK cluster logs.
- Two IAM Roles:
msk-connect-role, which includes granular IAM permissions for MSK Connect.redshift-role, which includes granular IAM permissions for Amazon Redshift.
- A custom MSK cluster configuration, allowing the MSK Connect connector to create topics on the MSK cluster.
- An MSK cluster, with three brokers deployed across the three private subnets of
custom-vpc. Themsk-cluster-sgsecurity group and thecustom-msk-cluster-configurationconfiguration are applied to the MSK cluster. The broker logs are delivered to themsk-cluster-logsCloudWatch log group. - A Redshift cluster subnet group, which is using the three private subnets of
custom-vpc. - A Redshift cluster, with one single node deployed in a private subnet within the Redshift cluster subnet group. The
redshift-sgsecurity group andredshift-roleIAM role are applied to the Redshift cluster.
Create an MSK Connect custom plugin
For this post, we use an Amazon MSK data generator deployed in MSK Connect, to generate mock customer data, and write it to an MSK topic.
Complete the following steps:
- Download the Amazon MSK data generator JAR file with dependencies from GitHub.

- Upload the JAR file into an S3 bucket in your AWS account.

- On the Amazon MSK console, choose Custom plugins under MSK Connect in the navigation pane.
- Choose Create custom plugin.
- Choose Browse S3, search for the Amazon MSK data generator JAR file you uploaded to Amazon S3, then choose Choose.
- For Custom plugin name, enter
msk-datagen-plugin. - Choose Create custom plugin.
When the custom plugin is created, you will see that its status is Active, and you can move to the next step.

Create an MSK Connect connector
Complete the following steps to create your connector:
- On the Amazon MSK console, choose Connectors under MSK Connect in the navigation pane.
- Choose Create connector.
- For Custom plugin type, choose Use existing plugin.
- Select
msk-datagen-plugin, then choose Next. - For Connector name, enter
msk-datagen-connector. - For Cluster type, choose Self-managed Apache Kafka cluster.
- For VPC, choose
custom-vpc. - For Subnet 1, choose the private subnet within your first Availability Zone.
For the custom-vpc created by the CloudFormation template, we are using odd CIDR ranges for public subnets, and even CIDR ranges for the private subnets:
-
- The CIDRs for the public subnets are 10.10.1.0/24, 10.10.3.0/24, and 10.10.5.0/24
- The CIDRs for the private subnets are 10.10.2.0/24, 10.10.4.0/24, and 10.10.6.0/24
- For Subnet 2, select the private subnet within your second Availability Zone.
- For Subnet 3, select the private subnet within your third Availability Zone.
- For Bootstrap servers, enter the list of bootstrap servers for TLS authentication of your MSK cluster.
To retrieve the bootstrap servers for your MSK cluster, navigate to the Amazon MSK console, choose Clusters, choose msk-cluster, then choose View client information. Copy the TLS values for the bootstrap servers.
- For Security groups, choose Use specific security groups with access to this cluster, and choose
msk-connect-sg. - For Connector configuration, replace the default settings with the following:
- For Connector capacity, choose Provisioned.
- For MCU count per worker, choose 1.
- For Number of workers, choose 1.
- For Worker configuration, choose Use the MSK default configuration.
- For Access permissions, choose
msk-connect-role. - Choose Next.
- For Encryption, select TLS encrypted traffic.
- Choose Next.
- For Log delivery, choose Deliver to Amazon CloudWatch Logs.
- Choose Browse, select
msk-connect-logs, and choose Choose. - Choose Next.
- Review and choose Create connector.
After the custom connector is created, you will see that its status is Running, and you can move to the next step.

Configure Amazon Redshift streaming ingestion for Amazon MSK
Complete the following steps to set up streaming ingestion:
- Connect to your Redshift cluster using Query Editor v2, and authenticate with the database user name
awsuser, and passwordAwsuser123. - Create an external schema from Amazon MSK using the following SQL statement.
In the following code, enter the values for the redshift-role IAM role, and the msk-cluster cluster ARN.
- Choose Run to run the SQL statement.

- Create a materialized view using the following SQL statement:
- Choose Run to run the SQL statement.

- You can now query the materialized view using the following SQL statement:
- Choose Run to run the SQL statement.

- To monitor the progress of records loaded via streaming ingestion, you can take advantage of the SYS_STREAM_SCAN_STATES monitoring view using the following SQL statement:
- Choose Run to run the SQL statement.

- To monitor errors encountered on records loaded via streaming ingestion, you can take advantage of the SYS_STREAM_SCAN_ERRORS monitoring view using the following SQL statement:
- Choose Run to run the SQL statement.

Clean up
After following along, if you no longer need the resources you created, delete them in the following order to prevent incurring additional charges:
- Delete the MSK Connect connector
msk-datagen-connector. - Delete the MSK Connect plugin
msk-datagen-plugin. - Delete the Amazon MSK data generator JAR file you downloaded, and delete the S3 bucket you created.
- After you delete your MSK Connect connector, you can delete the CloudFormation template. All the resources created by the CloudFormation template will be automatically deleted from your AWS account.
Conclusion
In this post, we demonstrated how to configure Amazon Redshift streaming ingestion from Amazon MSK, with a focus on privacy and security.
The combination of the ability of Amazon MSK to handle high throughput data streams with the robust analytical capabilities of Amazon Redshift empowers business to derive actionable insights promptly. This real-time data integration enhances the agility and responsiveness of organizations in understanding changing data trends, customer behaviors, and operational patterns. It allows for timely and informed decision-making, thereby gaining a competitive edge in today’s dynamic business landscape.
This solution is also applicable for customers that are looking to use Amazon MSK Serverless and Amazon Redshift Serverless.
We hope this post was a good opportunity to learn more about AWS service integration and configuration. Let us know your feedback in the comments section.
About the authors
Sebastian Vlad is a Senior Partner Solutions Architect with Amazon Web Services, with a passion for data and analytics solutions and customer success. Sebastian works with enterprise customers to help them design and build modern, secure, and scalable solutions to achieve their business outcomes.
Sharad Pai is a Lead Technical Consultant at AWS. He specializes in streaming analytics and helps customers build scalable solutions using Amazon MSK and Amazon Kinesis. He has over 16 years of industry experience and is currently working with media customers who are hosting live streaming platforms on AWS, managing peak concurrency of over 50 million. Prior to joining AWS, Sharad’s career as a lead software developer included 9 years of coding, working with open source technologies like JavaScript, Python, and PHP.
[$] Sudo and its alternatives
Post Syndicated from jake original https://lwn.net/Articles/962588/
Sudo is a ubiquitous tool for running
commands
with the privileges of another user on Unix-like operating systems. Over
the past decade or so,
some alternatives have
been developed; the base system of OpenBSD now comes with doas instead, sudo-rs is a subset of
sudo reimplemented in Rust, and, somewhat surprisingly, Microsoft also
recently announced
its own Sudo for Windows. Each of these offers a different approach to the
task of providing limited privileges to unprivileged users.
A Home-Approved Dashboard – Chapter 1: What about Grace?
Post Syndicated from Home Assistant original https://www.youtube.com/watch?v=XyBy0ckkiDU
Combine AWS Glue and Amazon MWAA to build advanced VPC selection and failover strategies
Post Syndicated from Michael Greenshtein original https://aws.amazon.com/blogs/big-data/combine-aws-glue-and-amazon-mwaa-to-build-advanced-vpc-selection-and-failover-strategies/
AWS Glue is a serverless data integration service that makes it straightforward to discover, prepare, move, and integrate data from multiple sources for analytics, machine learning (ML), and application development.
AWS Glue customers often have to meet strict security requirements, which sometimes involve locking down the network connectivity allowed to the job, or running inside a specific VPC to access another service. To run inside the VPC, the jobs needs to be assigned to a single subnet, but the most suitable subnet can change over time (for instance, based on the usage and availability), so you may prefer to make that decision at runtime, based on your own strategy.
Amazon Managed Workflows for Apache Airflow (Amazon MWAA) is an AWS service to run managed Airflow workflows, which allow writing custom logic to coordinate how tasks such as AWS Glue jobs run.
In this post, we show how to run an AWS Glue job as part of an Airflow workflow, with dynamic configurable selection of the VPC subnet assigned to the job at runtime.
Solution overview
To run inside a VPC, an AWS Glue job needs to be assigned at least a connection that includes network configuration. Any connection allows specifying a VPC, subnet, and security group, but for simplicity, this post uses connections of type: NETWORK, which just defines the network configuration and doesn’t involve external systems.
If the job has a fixed subnet assigned by a single connection, in case of a service outage on the Availability Zones or if the subnet isn’t available for other reasons, the job can’t run. Furthermore, each node (driver or worker) in an AWS Glue job requires an IP address assigned from the subnet. When running many large jobs concurrently, this could lead to an IP address shortage and the job running with fewer nodes than intended or not running at all.
AWS Glue extract, transform, and load (ETL) jobs allow multiple connections to be specified with multiple network configurations. However, the job will always try to use the connections’ network configuration in the order listed and pick the first one that passes the health checks and has at least two IP addresses to get the job started, which might not be the optimal option.
With this solution, you can enhance and customize that behavior by reordering the connections dynamically and defining the selection priority. If a retry is needed, the connections are reprioritized again based on the strategy, because the conditions might have changed since the last run.
As a result, it helps prevent the job from failing to run or running under capacity due to subnet IP address shortage or even an outage, while meeting the network security and connectivity requirements.
The following diagram illustrates the solution architecture.

Prerequisites
To follow the steps of the post, you need a user that can log in to the AWS Management Console and has permission to access Amazon MWAA, Amazon Virtual Private Cloud (Amazon VPC), and AWS Glue. The AWS Region where you choose to deploy the solution needs the capacity to create a VPC and two elastic IP addresses. The default Regional quota for both types of resources is five, so you might need to request an increase via the console.
You also need an AWS Identity and Access Management (IAM) role suitable to run AWS Glue jobs if you don’t have one already. For instructions, refer to Create an IAM role for AWS Glue.
Deploy an Airflow environment and VPC
First, you’ll deploy a new Airflow environment, including the creation of a new VPC with two public subnets and two private ones. This is because Amazon MWAA requires Availability Zone failure tolerance, so it needs to run on two subnets on two different Availability Zones in the Region. The public subnets are used so the NAT Gateway can provide internet access for the private subnets.
Complete the following steps:
- Create an AWS CloudFormation template in your computer by copying the template from the following quick start guide into a local text file.
- On the AWS CloudFormation console, choose Stacks in the navigation pane.
- Choose Create stack with the option With new resources (standard).
- Choose Upload a template file and choose the local template file.
- Choose Next.

- Complete the setup steps, entering a name for the environment, and leave the rest of the parameters as default.
- On the last step, acknowledge that resources will be created and choose Submit.
The creation can take 20–30 minutes, until the status of the stack changes to CREATE_COMPLETE.
The resource that will take most of time is the Airflow environment. While it’s being created, you can continue with the following steps, until you are required to open the Airflow UI.
- On the stack’s Resources tab, note the IDs for the VPC and two private subnets (
PrivateSubnet1andPrivateSubnet2), to use in the next step.
Create AWS Glue connections
The CloudFormation template deploys two private subnets. In this step, you create an AWS Glue connection to each one so AWS Glue jobs can run in them. Amazon MWAA recently added the capacity to run the Airflow cluster on shared VPCs, which reduces cost and simplifies network management. For more information, refer to Introducing shared VPC support on Amazon MWAA.
Complete the following steps to create the connections:
- On the AWS Glue console, choose Data connections in the navigation pane.
- Choose Create connection.
- Choose Network as the data source.
- Choose the VPC and private subnet (
PrivateSubnet1) created by the CloudFormation stack. - Use the default security group.
- Choose Next.

- For the connection name, enter
MWAA-Glue-Blog-Subnet1. - Review the details and complete the creation.
- Repeat these steps using
PrivateSubnet2and name the connectionMWAA-Glue-Blog-Subnet2.
Create the AWS Glue job
Now you create the AWS Glue job that will be triggered later by the Airflow workflow. The job uses the connections created in the previous section, but instead of assigning them directly on the job, as you would normally do, in this scenario you leave the job connections list empty and let the workflow decide which one to use at runtime.
The job script in this case is not significant and is just intended to demonstrate the job ran in one of the subnets, depending on the connection.
- On the AWS Glue console, choose ETL jobs in the navigation pane, then choose Script editor.
- Leave the default options (Spark engine and Start fresh) and choose Create script.
- Replace the placeholder script with the following Python code:
- Rename the job to
AirflowBlogJob. - On the Job details tab, for IAM Role, choose any role and enter 2 for the number of workers (just for frugality).
- Save these changes so the job is created.
Grant AWS Glue permissions to the Airflow environment role
The role created for Airflow by the CloudFormation template provides the basic permissions to run workflows but not to interact with other services such as AWS Glue. In a production project, you would define your own templates with these additional permissions, but in this post, for simplicity, you add the additional permissions as an inline policy. Complete the following steps:
- On the IAM console, choose Roles in the navigation pane.
- Locate the role created by the template; it will start with the name you assigned to the CloudFormation stack and then
-MwaaExecutionRole-. - On the role details page, on the Add permissions menu, choose Create inline policy.

- Switch from Visual to JSON mode and enter the following JSON on the textbox. It assumes that the AWS Glue role you have follows the convention of starting with
AWSGlueServiceRole. For enhanced security, you can replace the wildcard resource on theec2:DescribeSubnetspermission with the ARNs of the two private subnets from the CloudFormation stack. - Choose Next.
- Enter
GlueRelatedPermissionsas the policy name and complete the creation.
In this example, we use an ETL script job; for a visual job, because it generates the script automatically on save, the Airflow role would need permission to write to the configured script path on Amazon Simple Storage Service (Amazon S3).
Create the Airflow DAG
An Airflow workflow is based on a Directed Acyclic Graph (DAG), which is defined by a Python file that programmatically specifies the different tasks involved and its interdependencies. Complete the following scripts to create the DAG:
- Create a local file named
glue_job_dag.pyusing a text editor.
In each of the following steps, we provide a code snippet to enter into the file and an explanation of what is does.
- The following snippet adds the required Python modules imports. The modules are already installed on Airflow; if that weren’t the case, you would need to use a
requirements.txtfile to indicate to Airflow which modules to install. It also defines the Boto3 clients that the code will use later. By default, they will use the same role and Region as Airflow, that’s why you set up before the role with the additional permissions required. - The following snippet adds three functions to implement the connection order strategy, which defines how to reorder the connections given to establish their priority. This is just an example; you can build your custom code to implement your own logic, as per your needs. The code first checks the IPs available on each connection subnet and separates the ones that have enough IPs available to run the job at full capacity and those that could be used because they have at least two IPs available, which is the minimum a job needs to start. If the strategy is set to
random, it will randomize the order within each of the connection groups previously described and add any other connections. If the strategy iscapacity, it will order them from most IPs free to fewest. - The following code creates the DAG itself with the run job task, which updates the job with the connection order defined by the strategy, runs it, and waits for the results. The job name, connections, and strategy come from Airflow variables, so it can be easily configured and updated. It has two retries with exponential backoff configured, so if the tasks fails, it will repeat the full task including the connection selection. Maybe now the best choice is another connection, or the subnet previously picked randomly is in an Availability Zone that is currently suffering an outage, and by picking a different one, it can recover.
Create the Airflow workflow
Now you create a workflow that invokes the AWS Glue job you just created:
- On the Amazon S3 console, locate the bucket created by the CloudFormation template, which will have a name starting with the name of the stack and then
-environmentbucket-(for example,myairflowstack-environmentbucket-ap1qks3nvvr4). - Inside that bucket, create a folder called
dags, and inside that folder, upload the DAG fileglue_job_dag.pythat you created in the previous section. - On the Amazon MWAA console, navigate to the environment you deployed with the CloudFormation stack.
If the status is not yet Available, wait until it reaches that state. It shouldn’t take longer than 30 minutes since you deployed the CloudFormation stack.
- Choose the environment link on the table to see the environment details.
It’s configured to pick up DAGs from the bucket and folder you used in the previous steps. Airflow will monitor that folder for changes.
- Choose Open Airflow UI to open a new tab accessing the Airflow UI, using the integrated IAM security to log you in.
If there’s any issue with the DAG file you created, it will display an error on top of the page indicating the lines affected. In that case, review the steps and upload again. After a few seconds, it will parse it and update or remove the error banner.
- On the Admin menu, choose Variables.
- Add three variables with the following keys and values:
- Key
glue_job_dag.glue_connectionswith valueMWAA-Glue-Blog-Subnet1,MWAA-Glue-Blog-Subnet2. - Key
glue_job_dag.glue_job_namewith valueAirflowBlogJob. - Key
glue_job_dag.strategywith valuecapacity.
- Key

Run the job with a dynamic subnet assignment
Now you’re ready to run the workflow and see the strategy dynamically reordering the connections.
- On the Airflow UI, choose DAGs, and on the row
glue_job_dag, choose the play icon. - On the Browse menu, choose Task instances.
- On the instances table, scroll right to display the
Log Urland choose the icon on it to open the log.
The log will update as the task runs; you can locate the line starting with “Running Glue job with the connection order:” and the previous lines showing details of the connection IPs and the category assigned. If an error occurs, you’ll see the details in this log.

- On the AWS Glue console, choose ETL jobs in the navigation pane, then choose the job
AirflowBlogJob. - On the Runs tab, choose the run instance, then the Output logs link, which will open a new tab.
- On the new tab, use the log stream link to open it.
It will display the IP that the driver was assigned and which subnet it belongs to, which should match the connection indicated by Airflow (if the log is not displayed, choose Resume so it gets updated as soon as it’s available).

- On the Airflow UI, edit the Airflow variable
glue_job_dag.strategyto set it torandom. - Run the DAG multiple times and see how the ordering changes.
Clean up
If you no longer need the deployment, delete the resources to avoid any further charges:
- Delete the Python script you uploaded, so the S3 bucket can be automatically deleted in the next step.
- Delete the CloudFormation stack.
- Delete the AWS Glue job.
- Delete the script that the job saved in Amazon S3.
- Delete the connections you created as part of this post.
Conclusion
In this post, we showed how AWS Glue and Amazon MWAA can work together to build more advanced custom workflows, while minimizing the operational and management overhead. This solution gives you more control about how your AWS Glue job runs to meet special operational, network, or security requirements.
You can deploy your own Amazon MWAA environment in multiple ways, such as with the template used in this post, on the Amazon MWAA console, or using the AWS CLI. You can also implement your own strategies to orchestrate AWS Glue jobs, based on your network architecture and requirements (for instance, to run the job closer to the data when possible).
About the authors
Michael Greenshtein is an Analytics Specialist Solutions Architect for the Public Sector.
Gonzalo Herreros is a Senior Big Data Architect on the AWS Glue team.
Intel Foundry Announced for Next-Gen Process
Post Syndicated from Patrick Kennedy original https://www.servethehome.com/intel-foundry-announced-for-next-gen-process/
We are covering Intel’s Foundry 2024 event live. Big announcements are starting with re-organizing into Intel Foundry and Intel Products
The post Intel Foundry Announced for Next-Gen Process appeared first on ServeTheHome.
Your AI Toolbox: 16 Must Have Products
Post Syndicated from Stephanie Doyle original https://www.backblaze.com/blog/your-ai-toolbox-16-must-have-products/

Folks, it’s an understatement to say that the explosion of AI has been a wild ride. And, like any new, high-impact technology, the market initially floods with new companies. The normal lifecycle, of course, is that money is invested, companies are built, and then there will be winners and losers as the market narrows. Exciting times.
That said, we thought it was a good time to take you back to the practical side of things. One of the most pressing questions these days is how businesses may want to use AI in their existing or future processes, what options exist, and which strategies and tools are likely to survive long term.
We can’t predict who will sink or swim in the AI race—we might be able to help folks predict drive failure, but the Backblaze Crystal Ball (
) is not on our roadmap—so let’s talk about what we know. Things will change over time, and some of the tools we’ve included on this list will likely go away. And, as we fully expect all of you to have strong opinions, let us know what you’re using, which tools we may have missed, and why we’re wrong in the comments section.
Tools Businesses Can Implement Today (and the Problems They Solve)
As AI has become more accessible, we’ve seen it touted as either standalone tools or incorporated into existing software. It’s probably easiest to think about them in terms of the problems they solve, so here is a non-inclusive list.
The Large Language Model (LLM) “Everything Bot”
LLMs are useful in generative AI tasks because they work largely on a model of association. They intake huge amounts of data, use that to learn associations between ideas and words, and then use those learnings to perform tasks like creating copy or natural language search. That makes them great for a generalized use case (an “everything bot”) but it’s important to note that it’s not the only—or best—model for all AI/ML tasks.
These generative AI models are designed to be talked to in whatever way suits the querier best, and are generally accessed via browser. That’s not to say that the models behind them aren’t being incorporated elsewhere in things like chat bots or search, but that they stand alone and can be identified easily.
ChatGPT
In many ways, ChatGPT is the tool that broke the dam. It’s a large language model (LLM) whose multi-faceted capabilities were easily apparent and translatable across both business and consumer markets. Never say it came from nowhere, however: OpenAI and Microsoft Azure have been in cahoots for years creating the tool that (ahem) broke the internet.
Google Gemini, née Google Bard
It’s undeniable that Google has been on the front lines of AI/ML for quite some time. Some experts even say that their networks are the best poised to build a sustainable AI architecture. So why is OpenAI’s ChatGPT the tool on everyone’s mind? Simply put, Google has had difficulty commercializing their AI product—until, that is, they announced Google Gemini, and folks took notice. Google Gemini represents a strong contender for the type of function that we all enjoy from ChatGPT, powered by all the infrastructure and research they’re already known for.
Machine Learning (ML)
ML tasks cover a wide range of possibilities. When you’re looking to build an algorithm yourself, however, you don’t have to start from ground zero. There are robust, open source communities that offer pre-trained models, community support, integration with cloud storage, access to large datasets, and more.
- TensorFlow: TensorFlow was originally developed by Google for internal research and production. It supports various programming languages like C++, Python, and Java, and is designed to scale easily from research to development.
- PyTorch: PyTorch, on the other hand, is built for rapid prototyping and experimentation, and is primarily built for Python. That makes the learning curve for most devs much shorter, and lots of folks will layer it with Keras for additional API support (without sacrificing the speed and lower-level control of PyTorch).
Given the amount of flexibility in having an open source library, you see all sorts of things being built. A photo management company might grab a facial recognition algorithm, for instance, or use another to help order the parameters and hyperparameters of the algorithm. Think of it like wanting to build a table, but making the hammer and nails instead of purchasing your own.
Building Products With AI
You may also want or need to invest more resources—maybe you want to add AI to your existing product. In that scenario, you might hire an AI consultant to help you design, build, and train the algorithm, buy processing power from CoreWeave or Google, and store your data on-premises or in cloud storage.
In reality, most companies will likely do a mix of things depending on how they operate and what they offer. The biggest thing I’m trying to get at by presenting these scenarios, however, is that most people likely won’t set up their own large scale infrastructure, instead relying on inference tools. And, there’s something of a distinction to be made between whether you’re using tools designed to create efficiencies in your business versus whether you’re creating or incorporating AI/ML into your products.
Data Analytics
Without being too contentions, data analytics is one of the most powerful applications of AI/ML. While we measly humans may still need to provide context to make sense of the identified patterns, computers are excellent at identifying them more quickly and accurately than we could ever dream. If you’re looking to crunch serious numbers, these two tools will come in handy.
- Snowflake: Snowflake is a cloud-based data as a service (DaaS) company that specializes in data warehouses, data lakes, and data analytics. They provide a flexible, integration-friendly platform with options for both developing your own data tools or using built-out options. Loved by devs and business leaders alike, Snowflake is a powerhouse platform that supports big names and diverse customers such as AT&T, Netflix, Capital One, Canva, and Bumble.
- Looker: Looker is a business intelligence (BI) platform powered by Google. It’s a good example of a platform that takes the core functionalities of a product we’re already used to and layering on AI to make them more powerful. So, while BI platforms have long had robust data management and visualization capabilities, they can now do things like use natural language search or get automated data insights.
Development and Security
It’s no secret that one of the biggest pain points in the world of tech is having enough developers and having enough high quality ones, at that. It’s pushed the tech industry to work internationally, driven the creation of coding schools that train folks within six months, and compelled people to come up with codeless or low-code platforms that users of different skill levels can use. This also makes it one of the prime opportunities for the assistance of AI.
- GitHub Copilot: Even if you’re not in tech or working as a developer, you’ve likely heard of GitHub. Started in 2007 and officially launched in 2008, it’s a bit hard to imagine coding before it existed as the de facto center to find, share, and collaborate on code in a public forum. Now, they’re responsible for GitHub Copilot, which allows devs to generate code with a simple query. As with all generative tools, however, users should double check for accuracy and bias, and make sure to consider privacy, legal, and ethical concerns while using the tool.
Customer Experience and Marketing
Customer relationship management (CRM) tools assist businesses in effectively communicating with their customers and audiences. You use them to glean insights as broadly as trends in how you’re finding and converting leads to customers, or as granular as a single users’ interactions with marketing emails. A well-honed CRM means being able to serve your target and existing customers effectively.
- Hubspot and Salesforce Einstein: Two of the largest CRM platforms on the market, these tools are designed to make everything from email to marketing emails to lead scoring to customer service interactions easy. AI has started popping up in almost every function offered, including social media post generation, support ticket routing, website personalization suggestions, and more.
Operations, Productivity, and Efficiency
These kinds of tools take onerous everyday tasks and make them easy. Internally, these kinds of tools can represent massive savings to your OpEx budget, letting you use your resources more effectively. And, given that some of them also make processes external to your org easier (like scheduling meetings with new leads), they can also contribute to new and ongoing revenue streams.
- Loom: Loom is a specialized tool designed to make screen recording and subsequent video editing easy. Given how much time it takes to make video content, Loom’s targeting of this once-difficult task has certainly saved time and increased collaboration. Loom includes things like filler word and silence removal, auto-generating chapters with timestamps, summarizing the video, and so on. All features are designed for easy sharing and ingesting of data across video and text mediums.
- Calendly: Speaking of collaboration, remember how many emails it used to take to schedule a meeting, particularly if the person was external to your company? How about when you were working a conference and wanted to give a new lead an easy way to get on your calendar? And, of course, there’s the joy of managing multiple inboxes. (Thanks, Calendly. You changed my life.) Moving into the AI future, Calendly is doing similar small but mighty things: predicting your availability, detecting time zones, automating meeting schedules based on team member availability or round robin scheduling, cancellation insights, and more.
- Slack: Ah, Slack. Business experts have been trying for years to summarize the effect it’s had on workplace communication, and while it’s not the only tool on the market, it’s definitely a leader. Slack has been adding a variety of AI functions to its platform, including the ability to summarize channels, organize unreads, search and summarize messages—and then there’s all the work they’re doing with integrations rumored to be on the horizon, like creating meeting invite suggestions purely based on your mentioning “putting time on the calendar” in a message.
Creative and Design
Like coding and developer tools, creative of all kinds—image, video, copy—has long been a resource intensive task. These skills are not traditionally suited to corporate structures, and measuring whether one brand or another is better or worse is a complex process, though absolutely measurable and important. Generative AI, again like above, is giving teams the ability to create first drafts, or even train libraries, and then move the human oversight to a higher, more skilled, tier of work.
- Adobe and Figma: Both Adobe and Figma are reputable design collaboration tools. Though a merger was recently called off by both sides, both are incorporating AI to make it much, much easier to create images and video for all sorts of purposes. Generative AI means that large swaths of canvas can be filled by a generative tool that predicts background, for instance, or add stock versions of things like buildings with enough believability to fool a discerning eye. Video tools are still in beta, but early releases are impressive, to say the least. With the preview of OpenAI’s text-to-video model Sora making waves to the tune of a 7% drop in Adobe’s stock, video is the space to watch at the moment.
- Jasper and Copy.ai: Just like image generation above, these bots are also creating usable copy for tasks of all kinds. And, just like all generative tools, AI copywriters deliver a baseline level of quality best suited to some human oversight. As time goes on, how much oversight remains to be seen.
Tools for Today; Build for Tomorrow
At the end of this roundup, it’s worth noting that there are plenty of tools on the market, and we’ve just presented a few of the bigger names. Honestly, we had trouble narrowing the field of what to include so to speak—this very easily could have been a much longer article, or even a series of articles that delved into things we’re seeing within each use case. As we talked about in AI 101: Do the Dollars Make Sense? (and as you can clearly see here), there’s a great diversity of use cases, technological demands, and unexplored potential in the AI space—which means that companies have a variety of strategic options when deciding how to implement AI or machine learning.
Most businesses will find it easier and more in line with their business goals to adopt software as a service (SaaS) solutions that are either sold as a whole package or integrated into existing tools. These types of tools are great because they’re almost plug and play—you can skip training the model and go straight to using them for whatever task you need.
But, when you’re a hyperscaler and you’re talking about building infrastructure to support the processing and storage demands of the AI future, it’s a different scenario than when other types of businesses are talking about using or building an AI tool or algorithm specific to your business’ internal strategy or products. We’ve already seen that hyperscalers are going for broke in building data centers and processing hubs, investing in companies that are taking on different parts of the tech stack, and, of course, doing longer-term research and experimentation as well.
So, with a brave new world at our fingertips—being built as we’re interacting with it—the best thing for businesses to remember is that periods of rapid change offer opportunity, as long as you’re thoughtful about implementation. And, there are plenty of companies creating tools that make it easy to do just that.
The post Your AI Toolbox: 16 Must Have Products appeared first on Backblaze Blog | Cloud Storage & Cloud Backup.
The Great Pacific Garbage Patch
Post Syndicated from Geographics original https://www.youtube.com/watch?v=IpmVeboD4KI
Arm Neoverse N3 and V3 with CSS Launched
Post Syndicated from Patrick Kennedy original https://www.servethehome.com/arm-neoverse-n3-and-v3-with-css-launched/
Arm Neoverse N3 and V3 with CSS are now available for customers to use in their Arm server CPU, DPU, and AI accelerator designs
The post Arm Neoverse N3 and V3 with CSS Launched appeared first on ServeTheHome.
VLANs Made Easy: Learn This Today!
Post Syndicated from Crosstalk Solutions original https://www.youtube.com/watch?v=JszGeQPTo4w
8K/16MP outdoor camera is here – Reolink Duo 3 PoE
Post Syndicated from BeardedTinker original https://www.youtube.com/watch?v=2ukyRb_x5Ts
Deploying an EMR cluster on AWS Outposts to process data from an on-premises database
Post Syndicated from Macey Neff original https://aws.amazon.com/blogs/compute/deploying-an-emr-cluster-on-aws-outposts-to-process-data-from-an-on-premises-database/
seThis post is written by Eder de Mattos, Sr. Cloud Security Consultant, AWS and Fernando Galves, Outpost Solutions Architect, AWS.
In this post, you will learn how to deploy an Amazon EMR cluster on AWS Outposts and use it to process data from an on-premises database. Many organizations have regulatory, contractual, or corporate policy requirements to process and store data in a specific geographical location. These strict requirements become a challenge for organizations to find flexible solutions that balance regulatory compliance with the agility of cloud services. Amazon EMR is the industry-leading cloud big data platform for data processing, interactive analysis, and machine learning (ML) that uses open-source frameworks. With Amazon EMR on Outposts, you can seamlessly use data analytics solutions to process data locally in your on-premises environment without moving data to the cloud. This post focuses on creating and configuring an Amazon EMR cluster on AWS Outposts rack using Amazon Virtual Private Cloud (Amazon VPC) endpoints and keeping the networking traffic in the on-premises environment.
Architecture overview
In this architecture, there is an Amazon EMR cluster created in an AWS Outposts subnet. The cluster retrieves data from an on-premises PostgreSQL database, employs a PySpark Step for data processing, and then stores the result in a new table within the same database. The following diagram shows this architecture.
Figure 1 Architecture overview
Networking traffic on premises: The communication between the EMR cluster and the on-premises PostgreSQL database is through the Local Gateway. The core Amazon Elastic Compute Cloud (Amazon EC2) instances of the EMR cluster are associated with Customer-owned IP addresses (CoIP), and each instance has two IP addresses: an internal IP and a CoIP IP. The internal IP is used to communicate locally in the subnet, and the CoIP IP is used to communicate with the on-premises network.
Amazon VPC endpoints: Amazon EMR establishes communication with the VPC through an interface VPC endpoint. This communication is private and conducted entirely within the AWS network instead of connecting over the internet. In this architecture, VPC endpoints are created on a subnet in the AWS Region.
The support files used to create the EMR cluster are stored in an Amazon Simple Storage Service (Amazon S3) bucket. The communication between the VPC and Amazon S3 stays within the AWS network. The following files are stored in this S3 bucket:
get-postgresql-driver.sh: This is a bootstrap script to download the PostgreSQL driver to allow the Spark step to communicate to the PostgreSQL database through JDBC. You can download it through the GitHub repository for this Amazon EMR on Outposts blog post.postgresql-42.6.0.jar: PostgreSQL binary JAR file for the JDBC driver.spark-step-example.py: Example of a Step application in PySpark to simulate the connection to the PostgreSQL database.
AWS Systems Manager is configured to manage the EC2 instances that belong to the EMR cluster. It uses an interface VPC endpoint to allow the VPC to communicate privately with the Systems Manager.
The database credentials to connect to the PostgreSQL database are stored in AWS Secrets Manager. Amazon EMR integrates with Secrets Manager. This allows the secret to be stored in the Secrets Manager and be used through its ARN in the cluster configuration. During the creation of the EMR cluster, the secret is accessed privately through an interface VPC endpoint and stored in the variable DBCONNECTION in the EMR cluster.
In this solution, we are creating a small EMR cluster with one primary and one core node. For the correct sizing of your cluster, see Estimating Amazon EMR cluster capacity.
There is additional information to improve the security posture for organizations that use AWS Control Tower landing zone and AWS Organizations. The post Architecting for data residency with AWS Outposts rack and landing zone guardrails is a great place to start.
Prerequisites
Before deploying the EMR cluster on Outposts, you must make sure the following resources are created and configured in your AWS account:
- Outposts rack are installed, up and running.
- Amazon EC2 key pair is created. To create it, you can follow the instructions in Create a key pair using Amazon EC2 in the Amazon EC2 user guide.
Deploying the EMR cluster on Outposts
1. Deploy the CloudFormation template to create the infrastructure for the EMR cluster
You can use this AWS CloudFormation template to create the infrastructure for the EMR cluster. To create a stack, you can follow the instructions in Creating a stack on the AWS CloudFormation console in the AWS CloudFormation user guide.
2. Create an EMR cluster
To launch a cluster with Spark installed using the console:
Step 1: Configure Name and Applications
- Sign in to the AWS Management Console, and open the Amazon EMR console.
- Under EMR on EC2, in the left navigation pane, select Clusters, and then choose Create Cluster.
- On the Create cluster page, enter a unique cluster name for the Name
- For Amazon EMR release, choose
emr-6.13.0. - In the Application bundle field, select
Spark 3.4.1andZeppelin 0.10.1, and unselect all the other options. - For the Operating system options, select Amazon Linux release.
Step 2: Choose Cluster configuration method
- Under the Cluster configuration, select Uniform instance groups.
- For the Primary and the Core, select the EC2 instance type available in the Outposts rack that is supported by the EMR cluster.
- Remove the instance group Task 1 of 1.
Figure 3: Remove the instance group Task 1 of 1
Step 3: Set up Cluster scaling and provisioning, Networking and Cluster termination
- In the Cluster scaling and provisioning option, choose Set cluster size manually and type the value 1 for the Core
- On the Networking, select the VPC and the Outposts subnet.
- For Cluster termination, choose Manually terminate cluster.
Step 4: Configure the Bootstrap actions
A. In the Bootstrap actions, add an action with the following information:
-
- Name: copy-postgresql-driver.sh
- Script location: s3://<bucket-name>/copy-postgresql-driver.sh. Modify the <bucket-name> variable to the bucket name you specified as a parameter in Step 1.
Figure 4: Add bootstrap action
Step 5: Configure Cluster logs and Tags
a. Under Cluster logs, choose Publish cluster-specific logs to Amazon S3 and enter s3://<bucket-name>/logs for the field Amazon S3 location. Modify the <bucket-name> variable to the bucket name you specified as a parameter in Step 1.
Figure 5: Amazon S3 location for cluster logs
b. In Tags, add new tag. You must enter for-use-with-amazon-emr-managed-policies for the Key field and true for Value.
Figure 6: Add tags
Step 6: Set up Software settings and Security configuration and EC2 key pair
a. In the Software settings, enter the following configuration replacing the Secret ARN created in Step 1:
This is an example of the Secret ARN replaced:
Figure 7: Example of the Secret ARN replaced
b. For the Security configuration and EC2 key pair, choose the SSH key pair.
Step 7: Choose Identity and Access Management (IAM) roles
a. Under Identity and Access Management (IAM) roles:
-
- In the Amazon EMR service role:
- Choose
AmazonEMR-outposts-cluster-rolefor the Service role.
- Choose
- In EC2 instance profile for Amazon EMR
- Choose
AmazonEMR-outposts-EC2-role.
- Choose
- In the Amazon EMR service role:
Figure 8: Choose the service role and instance profile
Step 8: Create cluster
- Choose Create cluster to launch the cluster and open the cluster details page.
Now, the EMR cluster is starting. When your cluster is ready to process tasks, its status changes to Waiting. This means the cluster is up, running, and ready to accept work.
Figure 9: Result of the cluster creation
3. Add CoIPs to EMR core nodes
You need to allocate an Elastic IP from the CoIP pool and associate it with the EC2 instance of the EMR core nodes. This is necessary to allow the core nodes to access the on-premises environment. To allocate an Elastic IP, follow the instructions in Allocate an Elastic IP address in Amazon EC2 User Guide for Linux Instances. In Step 5, choose the Customer-owned pool of IPV4 addresses.
Once the CoIP IP is allocated, associate it with each EC2 instance of the EMR core node. Follow the instructions in Associate an Elastic IP address with an instance or network interface in Amazon EC2 User Guide for Linux Instances.
Checking the configuration
- Make sure the EC2 instance of the core nodes can ping the IP of the PostgreSQL database.
Connect to the Core node EC2 instance using Systems Manager and ping the IP address of the PostgreSQL database.
Figure 10: Connectivity test
- Make sure the Status of the EMR cluster is Waiting.
Figure 11: Cluster is ready and waiting
Adding a step to the Amazon EMR cluster
You can use the following Spark application to simulate the data processing from the PostgreSQL database.
spark-step-example.py:
You must upload the file spark-step-example.py to the bucket created in Step 1 of this post before submitting the Spark application to the EMR cluster. You can get the file at this GitHub repository for a Spark step example.
Submitting the Spark application step using the Console
To submit the Spark application to the EMR cluster, follow the instructions in To submit a Spark step using the console in the Amazon EMR Release Guide. In Step 4 of this Amazon EMR guide, provide the following parameters to add a step:
- choose Cluster mode for the Deploy mode
- type a name for your step (such as Step 1)
- for the Application location, choose s3://<bucket-name>/spark-step-example.py and replace the <bucket-name> variable to the bucket name you specified as a parameter in Step 1
- leave the Spark-submit options field blank
Figure 12: Add a step to the EMR cluster
The Step is created with the Status Pending. When it is done, the Status changes to Completed.
Figure 13: Step executed successfully
Cleaning up
When the EMR cluster is no longer needed, you can delete the resources created to avoid incurring future costs by following these steps:
- Follow the instructions in Terminate a cluster with the console in the Amazon EMR Documentation Management Guide. Remember to turn off the Termination protection.
- Dissociate and release the CoIP IPs allocated to the EC2 instances of the EMR core nodes.
- Delete the stack in the AWS CloudFormation using the instructions in Deleting a Stack on the AWS CloudFormation console in the AWS CloudFormation User Guide
Conclusion
Amazon EMR on Outposts allows you to use the managed services offered by AWS to perform big data processing close to your data that needs to remain on-premises. This architecture eliminates the need to transfer on-premises data to the cloud, providing a robust solution for organizations with regulatory, contractual, or corporate policy requirements to store and process data in a specific location. With the EMR cluster accessing the on-premises database directly through local networking, you can expect faster and more efficient data processing without compromising on compliance or agility. To learn more, visit the Amazon EMR on AWS Outposts product overview page.
[$] A proposal for shared memory in BPF programs
Post Syndicated from daroc original https://lwn.net/Articles/961941/
Alexei Starovoitov introduced
a patch series for the Linux kernel on February 6 to add bpf_arena, a new type
of shared memory between
BPF
programs and user space.
Starovitov expects arenas to be useful both for bidirectional communication
between user space and BPF programs, and for use as an additional heap for BPF
programs. This will likely be useful to BPF programs that implement
complex data structures directly, instead of relying on the kernel to supply them.
Starovoitov cited Google’s
ghOSt project
as an example and inspiration for the work.
RawTherapee 5.10 released
Post Syndicated from corbet original https://lwn.net/Articles/963036/
Version 5.10 of the
RawTherapee raw photo editor is out. The list of changes is long, and
includes improved support for many camera-specific formats. (LWN looked at RawTherapee in 2022).
Security updates for Wednesday
Post Syndicated from corbet original https://lwn.net/Articles/963035/
Security updates have been issued by CentOS (linux-firmware and python-reportlab), Debian (unbound), Fedora (freeglut and syncthing), Red Hat (edk2, go-toolset:rhel8, java-1.8.0-ibm, kernel, kernel-rt, mysql:8.0, oniguruma, and python-pillow), Slackware (libuv and mozilla), SUSE (abseil-cpp, grpc, opencensus-proto, protobuf, python- abseil, python-grpcio, re2, bind, dpdk, firefox, hdf5, libssh, libssh2_org, libxml2, mozilla-nss, openssl-1_1, openvswitch, postgresql12, postgresql13, postgresql14, postgresql15, postgresql16, python-aiohttp, python-time-machine, python-pycryptodomex, runc, and webkit2gtk3), and Ubuntu (kernel, libspf2, linux, linux-aws, linux-aws-hwe, linux-azure, linux-azure-4.15, linux-gcp,
linux-gcp-4.15, linux-hwe, linux-kvm, linux-oracle, and linux, linux-aws, linux-kvm, linux-lts-xenial).
Reolink Duo 3 Panoramic 180 Degree Camera w/ Motion Track
Post Syndicated from digiblurDIY original https://www.youtube.com/watch?v=47Wfoy08bFA


















